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

#   Cart redirection error when editing quantity

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 week ago -  13 years 1 week ago [\#133137](#133137) by [bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")  *[Cart redirection error when editing quantity](/forum/27-checkout/863744-cart-redirection-error-when-editing-quantity#133137 "-- url of the page with the problem -- :   ow.ly/qZ2fr  -- HikaShop version -- :2.2.2  I'm having a problem when editing the quantity in the cart. My domain is as follows:   domainname.org/shop  I can add a product to cart just fine. However, if I try to edit the quantity field (in the cart), the page redirects to a 404:   domainname.org/xxxxxxxx/shop/product ... (should be   domainname.org/shop/product ...)  Could you please help?  Thank you.")* was created by *[bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")*

-- url of the page with the problem -- : [ ow.ly/qZ2fr](http://ow.ly/qZ2fr)
-- HikaShop version -- :2.2.2

I'm having a problem when editing the quantity in the cart.
My domain is as follows: [ domainname.org/shop](http://domainname.org/shop)
I can add a product to cart just fine. However, if I try to edit the quantity field (in the cart), the page redirects to a 404:
[ domainname.org/xxxxxxxx/shop/product](http://domainname.org/xxxxxxxx/shop/product)... (should be [ domainname.org/shop/product](http://domainname.org/shop/product)...)

Could you please help?

Thank you.

Last edit: 13 years 1 week ago by [bdl888](/forum/user/4371-bdl888 "View bdl888's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc0NC1jYXJ0LXJlZGlyZWN0aW9uLWVycm9yLXdoZW4tZWRpdGluZy1xdWFudGl0eT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 week ago [\#133166](#133166) by [bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")  Replied by *[bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")* on topic *[Cart redirection error when editing quantity](/forum/27-checkout/863744-cart-redirection-error-when-editing-quantity#133166 "-- url of the page with the problem -- :   ow.ly/qZ2fr  -- HikaShop version -- :2.2.2  I'm having a problem when editing the quantity in the cart. My domain is as follows:   domainname.org/shop  I can add a product to cart just fine. However, if I try to edit the quantity field (in the cart), the page redirects to a 404:   domainname.org/xxxxxxxx/shop/product ... (should be   domainname.org/shop/product ...)  Could you please help?  Thank you.")*

It appears to be fine now. I had some weird links in my redirect component. Not sure how those links were created.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc0NC1jYXJ0LXJlZGlyZWN0aW9uLWVycm9yLXdoZW4tZWRpdGluZy1xdWFudGl0eT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 week ago [\#133178](#133178) by [bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")  Replied by *[bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")* on topic *[Cart redirection error when editing quantity](/forum/27-checkout/863744-cart-redirection-error-when-editing-quantity#133178 "-- url of the page with the problem -- :   ow.ly/qZ2fr  -- HikaShop version -- :2.2.2  I'm having a problem when editing the quantity in the cart. My domain is as follows:   domainname.org/shop  I can add a product to cart just fine. However, if I try to edit the quantity field (in the cart), the page redirects to a 404:   domainname.org/xxxxxxxx/shop/product ... (should be   domainname.org/shop/product ...)  Could you please help?  Thank you.")*

Sorry but the problem still happens after I cleared the redirection links....

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc0NC1jYXJ0LXJlZGlyZWN0aW9uLWVycm9yLXdoZW4tZWRpdGluZy1xdWFudGl0eT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

13 years 1 week ago [\#133206](#133206) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart redirection error when editing quantity](/forum/27-checkout/863744-cart-redirection-error-when-editing-quantity#133206 "-- url of the page with the problem -- :   ow.ly/qZ2fr  -- HikaShop version -- :2.2.2  I'm having a problem when editing the quantity in the cart. My domain is as follows:   domainname.org/shop  I can add a product to cart just fine. However, if I try to edit the quantity field (in the cart), the page redirects to a 404:   domainname.org/xxxxxxxx/shop/product ... (should be   domainname.org/shop/product ...)  Could you please help?  Thank you.")*

Make sure that you configured the live_site parameter of your joomla configuration.php file with the correct URL of your website and it should help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc0NC1jYXJ0LXJlZGlyZWN0aW9uLWVycm9yLXdoZW4tZWRpdGluZy1xdWFudGl0eT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 week ago -  13 years 1 week ago [\#133223](#133223) by [bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")  Replied by *[bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")* on topic *[Cart redirection error when editing quantity](/forum/27-checkout/863744-cart-redirection-error-when-editing-quantity#133223 "-- url of the page with the problem -- :   ow.ly/qZ2fr  -- HikaShop version -- :2.2.2  I'm having a problem when editing the quantity in the cart. My domain is as follows:   domainname.org/shop  I can add a product to cart just fine. However, if I try to edit the quantity field (in the cart), the page redirects to a 404:   domainname.org/xxxxxxxx/shop/product ... (should be   domainname.org/shop/product ...)  Could you please help?  Thank you.")*

Hi Nicolas,
Thanks for your reply. The live_site parameter is configured correctly...
Any other ideas?

Alternatively, is there a way to disable quantity editing in the cart module? (Still show the quantity but not allow field editing)

Benjamin

Last edit: 13 years 1 week ago by [bdl888](/forum/user/4371-bdl888 "View bdl888's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc0NC1jYXJ0LXJlZGlyZWN0aW9uLWVycm9yLXdoZW4tZWRpdGluZy1xdWFudGl0eT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

13 years 1 week ago [\#133322](#133322) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart redirection error when editing quantity](/forum/27-checkout/863744-cart-redirection-error-when-editing-quantity#133322 "-- url of the page with the problem -- :   ow.ly/qZ2fr  -- HikaShop version -- :2.2.2  I'm having a problem when editing the quantity in the cart. My domain is as follows:   domainname.org/shop  I can add a product to cart just fine. However, if I try to edit the quantity field (in the cart), the page redirects to a 404:   domainname.org/xxxxxxxx/shop/product ... (should be   domainname.org/shop/product ...)  Could you please help?  Thank you.")*

Hi,

The issue is with the base HTML element which gives a wrong based URL for the page and because of that the links are not correct.
The best would be to have a correct base set by your template (normally it uses the live_site parameter of the config for that).
I can't help precisely on that as I don't know how your template is done.

Regarding disabling the quantity field in the cart, that's quite easy on the other end. Simply change the line: 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;'); if (qty_field){&lt;?php echo $input; ?&gt; } document.&lt;?php echo $form; ?&gt;.submit(); return false;" /&gt; [code] to:[code] &lt;?php echo $row-&gt;cart_product_quantity; ?&gt;&lt;input id="hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="hidden" 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;'); if (qty_field){&lt;?php echo $input; ?&gt; } document.&lt;?php echo $form; ?&gt;.submit(); return false;" /&gt;

in the file "cart" of the view "product" via the menu Display&gt;views.

The following user(s) said Thank You: [bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc0NC1jYXJ0LXJlZGlyZWN0aW9uLWVycm9yLXdoZW4tZWRpdGluZy1xdWFudGl0eT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 1 week ago [\#133370](#133370) by [bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")  Replied by *[bdl888](/forum/user/4371-bdl888 "View bdl888's Profile")* on topic *[Cart redirection error when editing quantity](/forum/27-checkout/863744-cart-redirection-error-when-editing-quantity#133370 "-- url of the page with the problem -- :   ow.ly/qZ2fr  -- HikaShop version -- :2.2.2  I'm having a problem when editing the quantity in the cart. My domain is as follows:   domainname.org/shop  I can add a product to cart just fine. However, if I try to edit the quantity field (in the cart), the page redirects to a 404:   domainname.org/xxxxxxxx/shop/product ... (should be   domainname.org/shop/product ...)  Could you please help?  Thank you.")*

Thanks Nicolas. I went the 'disable quantity field' route with your code above.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2Mzc0NC1jYXJ0LXJlZGlyZWN0aW9uLWVycm9yLXdoZW4tZWRpdGluZy1xdWFudGl0eT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.098 seconds

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