I am using woocommerce latest version. I am developing a woocommerce supported theme from the scratch. Now I have a little problem. On archive page Ajax for "Add to cart" button is not working. Whenever I click "Add to cart" button the page get reloaded. I check the product setting and I got the "Enable AJAX add to cart buttons on archives " is checked. But the ajax is still not working. So where is the bug?
Note: I am a new bee in woocommerce type work.
The page being reloaded doesn't mean it's not added to the cart. You'll need to check /cart to verify if your product is added.
If you want to cart redirect after successful addition. I believe this is the setting right where the archive ajax cart setting is.
Related
I am looking to hide the button "add to cart" on the product pages within the magento store. My products just hold information. You cannot purchase them.
You can comment out the code that calls the button in the view.phtml file in the following location.
app/design/frontend/default/your theme/template/catalog/product/
If you search for 'button' you should find the section of code pretty quickly.
This will remove it from the product page. If you need to remove it from the catalog list page, do the same thing in list.phtml (don't forget both list and grid versions)
I am trying add to add my own theme to magento 1.9. Almost implemented but encountered a problem. When I clicked the proceed to checkout button from the cart page the it redirects to a page showing the checkout steps. There is no area to enter the shipping address, nothing. Then no buttons are there to proceed further. Please help me from this problem.
Add to cart button is not working.
Is this due to any jQuery conflict.
I am not using any custom jQuery for add to cart button but had used many extension which had jQuery.
On clicking add to cart button, no action no effect is performed, even nothing is displayed in firebug console.
Can any one tell me how to debug this.
Have you attempted switching on the default template for Magento to see if it could be something in your custom theme? Have you attempted in another browser?
I have most commonly seen the "add to cart" button cease if there were a jQuery conflict or if the button class/name had been changed.
Not sure if you're on version control but if you have migrated the site, there is a possibility that some files may have been left out. If you right click > inspect, are you getting any 404 errors?
Again, we would have to see the code (and possibly a link to the site) in order to accurately diagnose.
I have a task like; In magento, when we click on add to cart button, a popup
box has to be displayed and in that it has to display a text like
'has been added to cart' and also with two buttons like
continue shopping and proceed to checkout. So for this I have taken VS-Ajax
add to cart extension, but popup is not displaying. This everything has to
be done by Ajax functionality..
So how can I achieve this??
Try this
Its works for me.But in this you'll get "Alert" like product is added.
Here's the URL to my store: http://nibblesofnirvana.myshopify.com
(PASSWORD IS nibblesofnirvana)
What I want to do is present people with two options when they click "add to cart." If you get to "add to cart" on the website now, you'll see that I already have a lightbox that comes up.
I want one option that points to the regular checkout page, then another option that points to a new checkout page that I haven't made yet.
But I haven't been able to get the shopping cart to work. I'd like "BUY NOW" to add the item the person is viewing to the cart, and the other option I display simply link to another page.
I'm assuming this has something to do with the Ajax API, but shopify's documentation hasn't proven to be all that helpful... would be very helpful if someone could point me in the right direction!
Thanks!
you can do this:
click add to cart --> pop up small window of highslide js and in this popup, you can place your two options.. am i following your thought?