- Posts: 11
- Thank you received: 0
Remove RRP
- suppliesplus
-
Topic Author
- Offline
Less
More
8 years 4 months ago - 8 years 4 months ago #292268
by suppliesplus
Remove RRP was created by suppliesplus
-- url of the page with the problem -- :
dynamixgraphix.com/suppliesplus/index.ph...oving-box&Itemid=335
-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.7
-- PHP version -- : 5.6.27
-- Browser(s) name and version -- : FIREFOX 59.0.3
I'm trying to figure out how to remove the lettering RRP that is placed in front of the price on the product page using HikaShop Starter: 3.4.0.
We're just about to start putting prices on all our products and I need to clean this up.
Also wondering if anyone knows how to format to have the price underneath the product header rather than to the far right and also make the font larger.
-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.7
-- PHP version -- : 5.6.27
-- Browser(s) name and version -- : FIREFOX 59.0.3
I'm trying to figure out how to remove the lettering RRP that is placed in front of the price on the product page using HikaShop Starter: 3.4.0.
We're just about to start putting prices on all our products and I need to clean this up.
Also wondering if anyone knows how to format to have the price underneath the product header rather than to the far right and also make the font larger.
Last edit: 8 years 4 months ago by suppliesplus.
Please Log in or Create an account to join the conversation.
8 years 4 months ago - 8 years 4 months ago #292276
by nicolas
Replied by nicolas on topic Remove RRP
Hi,
This is not like that by default in HikaShop. It is displayed like that only because of the customization of your template for the product page. So you should normally ask your template provider support for such modification.
Now, moving the retail price to the left is just a matter of adding the correct CSS:
You can add it either in the template or in HikaShop:
www.hikashop.com/support/documentation/1...ize-the-display.html
The font-size can also be changed with CSS.
This is not like that by default in HikaShop. It is displayed like that only because of the customization of your template for the product page. So you should normally ask your template provider support for such modification.
Now, moving the retail price to the left is just a matter of adding the correct CSS:
Code:
.hikashop_product_page .text-right{
width: 100% !important;
text-align: left !important;
margin: 0 !important;
}
www.hikashop.com/support/documentation/1...ize-the-display.html
The font-size can also be changed with CSS.
Last edit: 8 years 4 months ago by nicolas.
The following user(s) said Thank You: suppliesplus
Please Log in or Create an account to join the conversation.
- suppliesplus
-
Topic Author
- Offline
Less
More
- Posts: 11
- Thank you received: 0
8 years 4 months ago #292320
by suppliesplus
Replied by suppliesplus on topic Remove RRP
Thank you for the help, I managed to get the formatting changed by editing the template.css using your code and information.
Unfortunately I can't contact the company I purchased the template from as it appears they are out of business.
Any suggestions where I might find the file to delete the RRP?
Unfortunately I can't contact the company I purchased the template from as it appears they are out of business.
Any suggestions where I might find the file to delete the RRP?
Please Log in or Create an account to join the conversation.
8 years 4 months ago #292329
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Remove RRP
Hello,
1 - www.hikashop.com/support/documentation/1...-display.html#layout
2 - "Display view files" : www.hikashop.com/support/documentation/5...g.html#advanced_main
Regards,
1 - www.hikashop.com/support/documentation/1...-display.html#layout
2 - "Display view files" : www.hikashop.com/support/documentation/5...g.html#advanced_main
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: suppliesplus
Please Log in or Create an account to join the conversation.
- suppliesplus
-
Topic Author
- Offline
Less
More
- Posts: 11
- Thank you received: 0
8 years 4 months ago - 8 years 4 months ago #292475
by suppliesplus
Replied by suppliesplus on topic Remove RRP
Hi Jerome, I set the "Display view files" setting to "all" it shows that it should be in the product / listing_price.php file but it's not.
I went through all of the .php files systematically.and I'll still can't find the RRP in any of them.
Any other suggestions?
dynamixgraphix.com/suppliesplus/index.ph...oving-box&Itemid=335
I went through all of the .php files systematically.and I'll still can't find the RRP in any of them.
Any other suggestions?
dynamixgraphix.com/suppliesplus/index.ph...oving-box&Itemid=335
Last edit: 8 years 4 months ago by suppliesplus.
Please Log in or Create an account to join the conversation.
8 years 4 months ago #292485
by nicolas
Replied by nicolas on topic Remove RRP
Hi,
It is in the listing_price.php view file. If you check it, you'll find that code which does that near the beginning of the file:
It is in the listing_price.php view file. If you check it, you'll find that code which does that near the beginning of the file:
Code:
if(isset($this->row->product_msrp) && @$this->row->product_msrp > 0.0 && hikaInput::get()->getCmd('layout') == 'show' && $this->params->get('from_module','') == '') {
?>
<span class="hikashop_product_msrp_price hikashop_product_price_full">
<span class="hikashop_product_msrp_price_title"><?php
echo JText::_('PRODUCT_MSRP_BEFORE');
?></span>
<span class="hikashop_product_price"><?php
$mainCurr = $this->currencyHelper->mainCurrency();
$app = JFactory::getApplication();
$currCurrency = $app->getUserState( HIKASHOP_COMPONENT.'.currency_id', $mainCurr );
$msrpCurrencied = $this->currencyHelper->convertUniquePrice($this->row->product_msrp,$mainCurr,$currCurrency);
if($msrpCurrencied == $this->row->product_msrp)
echo $this->currencyHelper->format($this->row->product_msrp,$mainCurr);
else {
echo $this->currencyHelper->format($msrpCurrencied,$currCurrency);
if($this->params->get('show_original_price'))
echo ' ('.$this->currencyHelper->format($this->row->product_msrp,$mainCurr).')';
}
?></span>
</span>
<?php
}
Please Log in or Create an account to join the conversation.
- suppliesplus
-
Topic Author
- Offline
Less
More
- Posts: 11
- Thank you received: 0
8 years 4 months ago #292490
by suppliesplus
Replied by suppliesplus on topic Remove RRP
Hi nicolas, what part of the code do I change or remove?
Please Log in or Create an account to join the conversation.
8 years 4 months ago #292491
by nicolas
Replied by nicolas on topic Remove RRP
Hi,
If you remove the whole code I gave on my previous message, it will remove the display of the RRP.
If you remove the whole code I gave on my previous message, it will remove the display of the RRP.
Please Log in or Create an account to join the conversation.
- suppliesplus
-
Topic Author
- Offline
Less
More
- Posts: 11
- Thank you received: 0
8 years 4 months ago - 8 years 4 months ago #292536
by suppliesplus
Replied by suppliesplus on topic Remove RRP
Last edit: 8 years 4 months ago by suppliesplus.
Please Log in or Create an account to join the conversation.
- suppliesplus
-
Topic Author
- Offline
Less
More
- Posts: 11
- Thank you received: 0
8 years 4 months ago #292538
by suppliesplus
Replied by suppliesplus on topic Remove RRP
I removed just this snippet of code and it seems to be working.
Do you think that should be ok?
Code:
<span class="hikashop_product_msrp_price_title">
<?php
echo JText::_('JM_PRODUCT_MSRP_BEFORE');
?>
</span>
Do you think that should be ok?
Please Log in or Create an account to join the conversation.
8 years 4 months ago #292553
by nicolas
Replied by nicolas on topic Remove RRP
Hi,
If that's what you want to remove then you don't even need to change any code there. You could just change that translation JM_PRODUCT_MSRP_BEFORE (which doesn't come from HikaShop) with a translation override:
www.hikashop.com/download/languages.html#modify
If that's what you want to remove then you don't even need to change any code there. You could just change that translation JM_PRODUCT_MSRP_BEFORE (which doesn't come from HikaShop) with a translation override:
www.hikashop.com/download/languages.html#modify
Please Log in or Create an account to join the conversation.
Time to create page: 0.202 seconds