[Skip to main content](#vessel-content)

#   Cart Module additions - $ sign, refresh and clear

##

- **[suebardak](/forum/user/10221-suebardak "View suebardak's Profile")**
- [![suebardak's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10221-suebardak "View suebardak's Profile") Topic Author
- [ Offline](/forum/user/10221-suebardak)

Less More

- Posts: 3
- Thank you received: 0
-
-

14 years 1 week ago -  14 years 1 week ago [\#72192](#72192) by [suebardak](/forum/user/10221-suebardak "View suebardak's Profile")  *[Cart Module additions - $ sign, refresh and clear](/forum/4-how-to/72192-cart-module-additions-sign-refresh-and-clear#72192 "Hi helpers out there!  I want my customers to be able to check their cart as they go. They therefore need to update the cart (on page that is separate to the checkout). They can change the quantity field but how do I get the &quot;refresh&quot; functionality there? At the moment if you press return you get taken to the checkout. I don't want that.  Also, I would like to show the $ sign. Format $ 0.00 AUD. I read the FAQ on this and it said to switch off the suppress the dollar sign extension but which extension?? I cannot find it.  Do you have a &quot;clear cart&quot; button that can be inserted on this module?  Sue")* was created by *[suebardak](/forum/user/10221-suebardak "View suebardak's Profile")*

Hi helpers out there!

I want my customers to be able to check their cart as they go. They therefore need to update the cart (on page that is separate to the checkout). They can change the quantity field but how do I get the "refresh" functionality there? At the moment if you press return you get taken to the checkout. I don't want that.

Also, I would like to show the $ sign. Format $ 0.00 AUD. I read the FAQ on this and it said to switch off the suppress the dollar sign extension but which extension?? I cannot find it.

Do you have a "clear cart" button that can be inserted on this module?

Sue

Last edit: 14 years 1 week ago by [suebardak](/forum/user/10221-suebardak "View suebardak's Profile"). Reason: Added another item and made title clearer

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcyMTkyLWNhcnQtbW9kdWxlLWFkZGl0aW9ucy1zaWduLXJlZnJlc2gtYW5kLWNsZWFyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 week ago [\#72305](#72305) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Cart Module additions - $ sign, refresh and clear](/forum/4-how-to/72192-cart-module-additions-sign-refresh-and-clear#72305 "Hi helpers out there!  I want my customers to be able to check their cart as they go. They therefore need to update the cart (on page that is separate to the checkout). They can change the quantity field but how do I get the &quot;refresh&quot; functionality there? At the moment if you press return you get taken to the checkout. I don't want that.  Also, I would like to show the $ sign. Format $ 0.00 AUD. I read the FAQ on this and it said to switch off the suppress the dollar sign extension but which extension?? I cannot find it.  Do you have a &quot;clear cart&quot; button that can be inserted on this module?  Sue")*

Hi,

To display the refresh button in the cart module, edit the view "product / cart" in HikaShop &gt; Display &gt; Views and paste the code: Code:

&lt;div class="hikashop_cart_product_quantity_refresh"&gt; &lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;" title="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'refresh.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;" /&gt; &lt;/a&gt; &lt;/div&gt;

Before: Code:

&lt;input id="hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;][cart_product_quantity]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); " /&gt;

Actually there is no "Clear cart" button, but you can add something like: Code:

&lt;a href="&lt;?php echo hikashop_completeLink('cart&amp;task=newCart&amp;cart_type=cart'.$Itemid); ?&gt;"&gt; &lt;span class="icon-32-add_cart" title="&lt;?php echo JText::_('NEW_CART'); ?&gt;"&gt; &lt;/span&gt; &lt;?php echo JText::_('NEW_CART'); ?&gt; &lt;/a&gt;

In the previous view.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcyMTkyLWNhcnQtbW9kdWxlLWFkZGl0aW9ucy1zaWduLXJlZnJlc2gtYW5kLWNsZWFyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
