Cart not doing calculations - Post ID...

User 984019 Photo


Registered User
34 posts

Hi
Just made a new cart with only 2 categories with 3 products. I have given the user the option to specify how many of the products they wish to purchase.

When testing locally though the cart does not display the number of items bought nor the price. All numeric price fields display 0 and number of items bought field displays 5. I also cannot delete the items from the cart. It does not display the shipping costs either.

I believe I have input all the relevant information when setting up the cart so am at a loss. I understand the cart is not functional till uploaded but for testing purposes it should work locally shouldn't it otherwise how do I know it works ? ?

TA
User 2641572 Photo


Registered User
1,245 posts

Are you using a php enabled server on your pc to test locally ?
User 984019 Photo


Registered User
34 posts

Hi Will

I do not believe that this PC is server enabled, I am not sure. What I can say though is this is the second cart I have done and I don't recall having these problems with the first one. I have an inclination though that I am missing something within my cart configuration which is causing these problems. Surely simple things like being able to delete items in the cart would not be affected if used on the local machine would they ?. I understand that the cart is not functional until uploaded but I assumed this meant nothing could actually be bought.

Also other funny things happen like when an item is viewed an the number to purchase is entered and the buy now button is pressed it does not put those items in the cart but just clears the number purchased back to zero.

Maybe I should delete and start again.

Thanks for your reply.

Phil
User 2641572 Photo


Registered User
1,245 posts

Hi Phil. To test locally on your machine, the functions of your cart will ONLY work, if they are running on a php powered server, usually running Apache. Unless you have specifically installed a xampp type development environment on your pc, the only way you can test the functionality of your cart is by uploading to live web space.

The preview has no functionality other than to give an idea what the shop looks like, as the cart software will only work fully, when a server running php is available to run the core code..

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.