- Posts: 49
- Thank you received: 2
Assigning Unit of Measure
14 years 1 month ago #67155
by Cyngen
Assigning Unit of Measure was created by Cyngen
Hello,
I followed the directions within the FAQ located at www.hikashop.com/en/support/documentation/faq.html#each
I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.
I did make the changes to the language area and added PER_POUND to my override area for US English as well.
AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.
I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0
cheers and thanks,
Kurt
I followed the directions within the FAQ located at www.hikashop.com/en/support/documentation/faq.html#each
I continue to get 'each' as the unit of measure, rather than the 'pound' i setup for a given product.
I did make the changes to the language area and added PER_POUND to my override area for US English as well.
AT the present time the site is not online with DNS as I'm working with the client to convert over to a new system. I can provide the site and IP address if needed in a PM to gather any assistence if needed.
I'm on Joomla! 2.5.6 and Hikashop Business 1.6.0
cheers and thanks,
Kurt
The following user(s) said Thank You: Mohamed Thelji
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
14 years 1 month ago - 14 years 1 month ago #67163
by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: Assigning Unit of Measure
Hi,
Did you tried to edit your translation file and Override the line :
Did you tried to edit your translation file and Override the line :
by :PER_UNIT=" each"
?PER_UNIT=" "
Last edit: 14 years 1 month ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
14 years 1 month ago - 14 years 1 month ago #67165
by Cyngen
Replied by Cyngen on topic Re: Assigning Unit of Measure
I'm not sure why I would blank out PER_UNIT as you stated. I tried that and my product detail page shows a 'blank' instead of a proper unit of measure.
Edited to Add: I'm not the best PHP coder out there (yet) so I'm sure it's something I've mucked up.
Thx, Kurt
Edited to Add: I'm not the best PHP coder out there (yet) so I'm sure it's something I've mucked up.
Thx, Kurt
Last edit: 14 years 1 month ago by Cyngen.
Please Log in or Create an account to join the conversation.
14 years 1 month ago #67251
by nicolas
Replied by nicolas on topic Re: Assigning Unit of Measure
If you want to have help on the coding customization you did, we would need to know precisely what modification you did to which file and how you configured your custom field.
Could you please post some screenshots ?
Could you please post some screenshots ?
The following user(s) said Thank You: Cyngen
Please Log in or Create an account to join the conversation.
14 years 1 month ago - 14 years 1 month ago #67311
by Cyngen
Replied by Cyngen on topic Re: Assigning Unit of Measure
Nicolas,
Attached are screen shots and the php file as defined by the FAQ www.hikashop.com/en/support/documentation/faq.html#each
I setup a custom field called "uom"
I edited the product / listing_price.php file and it's attached as an .rtf with my changed colored in blue
I added "PER_POUND" to my language file.
I double checked the back end SQL record and it shows the column 'uom' populated with 'PER_POUND'
I included the front end behavior shot as well to show what is occuring.
Attached are screen shots and the php file in rtf format.
Thanks again, Kurt
Attached are screen shots and the php file as defined by the FAQ www.hikashop.com/en/support/documentation/faq.html#each
I setup a custom field called "uom"
I edited the product / listing_price.php file and it's attached as an .rtf with my changed colored in blue
I added "PER_POUND" to my language file.
I double checked the back end SQL record and it shows the column 'uom' populated with 'PER_POUND'
I included the front end behavior shot as well to show what is occuring.
Attached are screen shots and the php file in rtf format.
Thanks again, Kurt
Last edit: 14 years 1 month ago by Cyngen.
Please Log in or Create an account to join the conversation.
14 years 1 month ago #67467
by nicolas
Replied by nicolas on topic Re: Assigning Unit of Measure
Can you try to change all your code by:
echo JText::_($this->element->uom);
echo JText::_($this->element->uom);
The following user(s) said Thank You: Cyngen
Please Log in or Create an account to join the conversation.
14 years 1 month ago #67581
by Cyngen
Replied by Cyngen on topic Re: Assigning Unit of Measure
I will give this a try and report back the results. Again, thank you.
Kurt
Kurt
Please Log in or Create an account to join the conversation.
14 years 1 month ago #67583
by Cyngen
Replied by Cyngen on topic Re: Assigning Unit of Measure
Nicolas,
That fixed it perfectly. If you have time, I'd be interested in knowing why the change from the documents? Did I read something incorrectly? Again, thank you for the quick response.
That fixed it perfectly. If you have time, I'd be interested in knowing why the change from the documents? Did I read something incorrectly? Again, thank you for the quick response.
Please Log in or Create an account to join the conversation.
14 years 1 month ago #67646
by nicolas
Replied by nicolas on topic Re: Assigning Unit of Measure
It must have been a miss somewhere in your changes. Maybe a space in a value or else.
I'm not the one who did this FAQ and the code from the FAQ should be changed to mine. It will be easier to follow for users.
I've actually made the change.
I'm not the one who did this FAQ and the code from the FAQ should be changed to mine. It will be easier to follow for users.
I've actually made the change.
The following user(s) said Thank You: Cyngen
Please Log in or Create an account to join the conversation.
14 years 1 month ago #67669
by Cyngen
Replied by Cyngen on topic Re: Assigning Unit of Measure
Case closed as it were. Thanks for the fast good response.
Kurt
Kurt
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds