Use a custom field in price listing
- jeff_heilman@comcast.net
-
Topic Author
- Offline
Less
More
13 years 10 months ago #84178
by jeff_heilman@comcast.net
Use a custom field in price listing was created by jeff_heilman@comcast.net
Hello!
I've been working at this for a few days with absolutely no luck and would greatly appreciate any help.
I have created a custom field in the Products table where I can list the unit of measure [UOM] for each item, PC, SET, etc. Instead of having this field appear under SPECIFICATIONS on the product page I would like to use the field in line with the price under the product image. I also would like to incorporate it into the product listing page to read "As Low as $40.00 per SET. Please see the attached images for a better understanding.
Thanks! I love Hikashop and this forum has helped me a ton in developing my store. Have a great day!
Jeff
I've been working at this for a few days with absolutely no luck and would greatly appreciate any help.
I have created a custom field in the Products table where I can list the unit of measure [UOM] for each item, PC, SET, etc. Instead of having this field appear under SPECIFICATIONS on the product page I would like to use the field in line with the price under the product image. I also would like to incorporate it into the product listing page to read "As Low as $40.00 per SET. Please see the attached images for a better understanding.
Thanks! I love Hikashop and this forum has helped me a ton in developing my store. Have a great day!
Jeff
Please Log in or Create an account to join the conversation.
- jeff_heilman@comcast.net
-
Topic Author
- Offline
13 years 10 months ago #84261
by jeff_heilman@comcast.net
Replied by jeff_heilman@comcast.net on topic Use a custom field in price listing
Hello,
I did manage to get the custom field "salemethod" to appear on the product page for the highest price by using this: www.hikashop.com/en/support/documentation/faq.html#each
I still need to get the salemethod field to show with the rest of the fields. If anyone could point me in the right direction it'd be great.
Thanks!
Jeff
I did manage to get the custom field "salemethod" to appear on the product page for the highest price by using this: www.hikashop.com/en/support/documentation/faq.html#each
I still need to get the salemethod field to show with the rest of the fields. If anyone could point me in the right direction it'd be great.
Thanks!
Jeff
Please Log in or Create an account to join the conversation.
13 years 10 months ago #84400
by Xavier
Replied by Xavier on topic Use a custom field in price listing
Hi,
You will have to edit the view "product / listing_price" and add a condition around: "echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity);" and "echo JText::_('PER_UNIT');" to change the text depending of the type of product. If the product is a set so change the translation to set it a "per set ..." etc.
For the text in the products listing it's in the same file.
It require some PHP knowledge to do that.
You will have to edit the view "product / listing_price" and add a condition around: "echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity);" and "echo JText::_('PER_UNIT');" to change the text depending of the type of product. If the product is a set so change the translation to set it a "per set ..." etc.
For the text in the products listing it's in the same file.
It require some PHP knowledge to do that.
Please Log in or Create an account to join the conversation.
- jeff_heilman@comcast.net
-
Topic Author
- Offline
13 years 10 months ago #84649
by jeff_heilman@comcast.net
Replied by jeff_heilman@comcast.net on topic Use a custom field in price listing
Thanks once again Xavier! My PHP knowledge is minimal at best. Could you provide me with a code snippet sample that I can play with?
This shop is my second installation of Hikashop Business. The first one was for a client and I liked it so much I bought it for my own business. I guess it's a good thing for my clients application it didn't take much customizing!
Again, I appreciate your time. Have a great day!
This shop is my second installation of Hikashop Business. The first one was for a client and I liked it so much I bought it for my own business. I guess it's a good thing for my clients application it didn't take much customizing!
Again, I appreciate your time. Have a great day!
Please Log in or Create an account to join the conversation.
13 years 10 months ago #84708
by Xavier
Replied by Xavier on topic Use a custom field in price listing
You can use something like:
Code:
if($this->row->salemethod == "set"){
echo JText::_('PER_SET');
}else{
echo JText::_('PER_UNIT');
}
Please Log in or Create an account to join the conversation.
Time to create page: 0.049 seconds