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

#   Problem adding additional prices

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 9 months ago [\#5542](#5542) by [dommaster](/forum/user/741-dommaster "View dommaster's Profile")  *[Problem adding additional prices](/forum/3-bug-report/5542-problem-adding-additional-prices#5542 "Version 1.4.3 Joomla 1.6  Hello, Im having issues adding prices to my products. I can add a single product price &quot;Qty=0&quot; When I try to add an additional price &quot;Qty=6&quot; it won't save.  Rgds DM")* was created by *[dommaster](/forum/user/741-dommaster "View dommaster's Profile")*

Version 1.4.3
Joomla 1.6

Hello, Im having issues adding prices to my products.
I can add a single product price "Qty=0"
When I try to add an additional price "Qty=6" it won't save.

Rgds
DM

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NTQyLXByb2JsZW0tYWRkaW5nLWFkZGl0aW9uYWwtcHJpY2VzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 9 months ago [\#5545](#5545) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problem adding additional prices](/forum/3-bug-report/5542-problem-adding-additional-prices#5545 "Version 1.4.3 Joomla 1.6  Hello, Im having issues adding prices to my products. I can add a single product price &quot;Qty=0&quot; When I try to add an additional price &quot;Qty=6&quot; it won't save.  Rgds DM")*

Hi,

Could you try to reproduce the problem on our demo website ? Does it work for you there ?
Also, if you try with another browser, does it work ?

Do you have some kind of error ? What if you activate the debug mode of joomla and try again ? Do you get an error ?

As we can't reproduce the problem on our end, we will need more information in order to find the solution.

Thanks

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 9 months ago [\#5546](#5546) by [dommaster](/forum/user/741-dommaster "View dommaster's Profile")  Replied by *[dommaster](/forum/user/741-dommaster "View dommaster's Profile")* on topic *[Re: Problem adding additional prices](/forum/3-bug-report/5542-problem-adding-additional-prices#5546 "Version 1.4.3 Joomla 1.6  Hello, Im having issues adding prices to my products. I can add a single product price &quot;Qty=0&quot; When I try to add an additional price &quot;Qty=6&quot; it won't save.  Rgds DM")*

No error recorded!
Works on the demo version, note demo is J1.5 (IE)
Works on Firefox

Does not work on IE
Note the ID of the original price jumps to next available ID after the save button is hit.

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/payments_1.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/payments_1.png "&#91;img")

Is this the JDebug error you are looking for?

**Parsing errors in language files**
/webspace/httpdocs/language/en-GB/en-GB.com_hikashop.ini : error(s) in line(s) 1, 626, 628, 661, 663

- [ ![payments&#95;1.png](/forum/attachment/351) ](/forum/attachment/351 "payments&#95;1.png") [ ](/forum/attachment/351?download=1 "payments&#95;1.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NTQyLXByb2JsZW0tYWRkaW5nLWFkZGl0aW9uYWwtcHJpY2VzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 9 months ago [\#5547](#5547) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problem adding additional prices](/forum/3-bug-report/5542-problem-adding-additional-prices#5547 "Version 1.4.3 Joomla 1.6  Hello, Im having issues adding prices to my products. I can add a single product price &quot;Qty=0&quot; When I try to add an additional price &quot;Qty=6&quot; it won't save.  Rgds DM")*

Hi,

Thank you for your report. That helped us reproduce the problem.

It seems to happen only with IE7 and not with IE8. It seems that IE7 doesn't initialize the DOM attributes of cloned elements unless they are appended to an element in the DOM. Thus, some data isn't properly initialized when you add a row. And thus, the row isn't taken into account.

In short, we changed the javascript function addPriceRow which handle that. You can edit the file administrator/components/com_hikashop/views/product/tmpl/price.php
and change the code: Code:

function addPriceRow(){ var count = parseInt(document.getElementById('count_price').value); document.getElementById('count_price').value=count+1; var theTable = document.getElementById('price_listing'); var rowData = document.getElementById('price_##').cloneNode(true); rowData.id = rowData.id.replace(/##/g,count); for (var c = 0,m=rowData.cells.length;c&lt;m;c++){ rowData.cells[c].innerHTML = rowData.cells[c].innerHTML.replace(/##/g,count); } theTable.appendChild(rowData); return false; }

to Code:

function addPriceRow(){ var count = parseInt(document.getElementById('count_price').value); document.getElementById('count_price').value=count+1; var theTable = document.getElementById('price_listing'); var oldRow = document.getElementById('price_##'); var rowData = oldRow.cloneNode(true); rowData.id = rowData.id.replace(/##/g,count); theTable.appendChild(rowData); for (var c = 0,m=oldRow.cells.length;c&lt;m;c++){ rowData.cells[c].innerHTML = rowData.cells[c].innerHTML.replace(/##/g,count); } return false; }

That fixed the problem on our end and it seems to work with the other browsers as well.
That fix will be included in next version of HikaShop.

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 9 months ago [\#5551](#5551) by [dommaster](/forum/user/741-dommaster "View dommaster's Profile")  Replied by *[dommaster](/forum/user/741-dommaster "View dommaster's Profile")* on topic *[Re: Problem adding additional prices](/forum/3-bug-report/5542-problem-adding-additional-prices#5551 "Version 1.4.3 Joomla 1.6  Hello, Im having issues adding prices to my products. I can add a single product price &quot;Qty=0&quot; When I try to add an additional price &quot;Qty=6&quot; it won't save.  Rgds DM")*

Thank you Nicolas,
That solved the problem.

Rgds DM

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NTQyLXByb2JsZW0tYWRkaW5nLWFkZGl0aW9uYWwtcHJpY2VzP3RtcGw9bWFya2Rvd24=) 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.137 seconds

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

[](#top)
