- Posts: 7
- Thank you received: 0
Adding text to the price
14 years 3 months ago #53461
by svekke_s
Adding text to the price was created by svekke_s
I have my page with my products on (a picture, the price and the link to the productpage.
Some of my products have a different size to choose from and according to the size there is a price difference.
How can I add the following text: "starting from" just before the price?
Thanks in advance.
Some of my products have a different size to choose from and according to the size there is a price difference.
How can I add the following text: "starting from" just before the price?
Thanks in advance.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
14 years 3 months ago - 14 years 3 months ago #53471
by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: Adding text to the price
Hello,
If you want to change the way of displaying the price, you'll have to edit the file "listing_price" of the view "product" of the template that you are currently using.
For example if you want to add Starting from in front of every price of products which have variants, you can add :
After the lines
Hope this will help you a little
If you want to change the way of displaying the price, you'll have to edit the file "listing_price" of the view "product" of the template that you are currently using.
For example if you want to add Starting from in front of every price of products which have variants, you can add :
Code:
if($this->row->product_type=="variant"&&@$_GET['task']=="show") echo "Starting from: ";
Code:
<span class="hikashop_product_price_full<?php echo $class; ?>">
<?php
Last edit: 14 years 3 months ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
14 years 3 months ago #53605
by svekke_s
Replied by svekke_s on topic Re: Adding text to the price
That is the solution.
Is it also possible to ad this text on the product overview-page?
This is a page with a pic of the products, the price and a link to the productpage.
Is it also possible to ad this text on the product overview-page?
This is a page with a pic of the products, the price and a link to the productpage.
Please Log in or Create an account to join the conversation.
14 years 3 months ago #53694
by nicolas
Replied by nicolas on topic Re: Adding text to the price
It's the same file. Just use that code:
if($this->row->has_options) echo "Starting from: ";
if($this->row->has_options) echo "Starting from: ";
Please Log in or Create an account to join the conversation.
14 years 3 months ago #53754
by svekke_s
Replied by svekke_s on topic Re: Adding text to the price
On what line do I have to change this?
I have added this line and got a lot of errors with my other products.
I have added this line and got a lot of errors with my other products.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
14 years 3 months ago #53762
by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: Adding text to the price
Hello,
You should just replace the line :
by
and it will be good.
You should just replace the line :
Code:
if($this->row->product_type=="variant"&&@$_GET['task']=="show") echo "Starting from: ";
Code:
if(@$this->row->has_options) echo "Starting from: ";
The following user(s) said Thank You: shopatmimi
Please Log in or Create an account to join the conversation.
14 years 3 months ago #53765
by svekke_s
Replied by svekke_s on topic Re: Adding text to the price
Yes, that did the trick.
Thank you.
Thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.239 seconds