Assigning Unit of Measure

  • Posts: 49
  • Thank you received: 2
12 years 1 month ago #67155

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

The following user(s) said Thank You: Mohamed Thelji

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67163

Hi,

Did you tried to edit your translation file and Override the line :

PER_UNIT=" each"

by :

PER_UNIT=" "

?

Last edit: 12 years 1 month ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 2
12 years 1 month ago #67165

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

Last edit: 12 years 1 month ago by Cyngen.

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #67251

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 ?

The following user(s) said Thank You: Cyngen

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 2
12 years 1 month ago #67311

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

Last edit: 12 years 1 month ago by Cyngen.

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #67467

Can you try to change all your code by:
echo JText::_($this->element->uom);

The following user(s) said Thank You: Cyngen

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 2
12 years 1 month ago #67581

I will give this a try and report back the results. Again, thank you.

Kurt

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 2
12 years 1 month ago #67583

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.

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #67646

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.

The following user(s) said Thank You: Cyngen

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 2
12 years 1 month ago #67669

Case closed as it were. Thanks for the fast good response.

Kurt

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum