- Posts: 29
- Thank you received: 0
"Added to cart" notification next to "Add to Cart"
-- Joomla version -- : 3.4.3
There are three options after the user click "Add to Cart" button:
- Stay on page
- Redirect
- Popup notification
How can I append "Added to Cart" notification next to the "Add to Cart" after the user click this button? And even better with the counter of added goods
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
"1 products added to the cart1 products added to the cart2 products added to the cart" (see attached file)
Is there a way to show only the total of added items. Like "Added to Cart: 5 items" ?
And If the customer comes back to this page again later, how to make him informed that the product is already in the cart?
Please Log in or Create an account to join the conversation.
Clicking this button again links to the Cart Page
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Customers are generally informed of what they have added to their cart by displaying a cart module listing every products added to their cart or only displaying the amount of product on their cart.And If the customer comes back to this page again later, how to make him informed that the product is already in the cart?
Doing it will be more complex, but to fix the code that Nicolas gave you, a solution can be to, edit the file "show_default" file of the "Product" view of your front-end template, and add after these lines :Is there a way to show only the total of added items. Like "Added to Cart: 5 items" ?
And change the code that Nicolas gave you by :
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You first load the cart, sum the quantity of each product in it, and then sum it with the quantity asked by the customer.
Please understand that we're already way outside user support here and that this falls under code customization.
If you need a developer to help you with such customization, you can use our commercial jobs forum or contact our partners:
www.hikashop.com/home/our-partners.html
We also have documentation for developers who wish to customize themselves :
www.hikashop.com/support/documentation/1...ize-the-display.html
www.hikashop.com/support/documentation/6...r-documentation.html
Please Log in or Create an account to join the conversation.
Clicking this button again would link to the Cart Page
2) and the same principle for product page and category listing ?
3) Whilst trying to get "Added to cart" notification next to "Add to Cart" in the category listing I attempted to use this code in cart.php
And added a line
But the notice is not being rendered. What am I doing wrong?
Please Log in or Create an account to join the conversation.
1. You want to edit the file add_to_cart_listing file like you did for point 3 to customize the javascript of the add to cart button in order to perform these tasks when the customer click on the button.
2. The add_to_cart_listing will only be for the listing of products. For the product page, you want to edit the show_default view file instead and you'll also have a $this->ajax there that you can customize.
3. I don't see the span on your website when I look at the HTML of the page. So that means that either you're not using the "image and title" block layout for your listing, or that you've edited the view file for another template.
Please Log in or Create an account to join the conversation.
I've used a bit different approach, without that span3. I don't see the span on your website when I look at the HTML of the page. So that means that either you're not using the "image and title" block layout for your listing, or that you've edited the view file for another template.
Please Log in or Create an account to join the conversation.