Remove RRP

  • Posts: 11
  • Thank you received: 0
7 years 6 days ago #292268

-- 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.

Attachments:
Last edit: 7 years 6 days ago by suppliesplus.

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

  • Posts: 83766
  • Thank you received: 13555
  • MODERATOR
7 years 6 days ago #292276

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:

.hikashop_product_page .text-right{
    width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
}
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.

Last edit: 7 years 6 days ago by nicolas.
The following user(s) said Thank You: suppliesplus

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

  • Posts: 11
  • Thank you received: 0
7 years 6 days ago #292320

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?

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 5 days ago #292329

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.

  • Posts: 11
  • Thank you received: 0
7 years 1 day ago #292475

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?

http://dynamixgraphix.com/suppliesplus/index.php?option=com_hikashop&ctrl=product&task=show&cid=153&name=1-5-cu-ft-moving-box&Itemid=335

Last edit: 7 years 1 day ago by suppliesplus.

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

  • Posts: 83766
  • Thank you received: 13555
  • MODERATOR
7 years 13 hours ago #292485

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:

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.

  • Posts: 11
  • Thank you received: 0
7 years 13 hours ago #292490

Hi nicolas, what part of the code do I change or remove?

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

  • Posts: 83766
  • Thank you received: 13555
  • MODERATOR
7 years 1 hour ago #292491

Hi,

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.

  • Posts: 11
  • Thank you received: 0
6 years 11 months ago #292536

Nope unfortunately that didn't work, I removed the specific code and received a parse syntax error. (see attached pic)

Attachments:
Last edit: 6 years 11 months ago by suppliesplus.

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

  • Posts: 11
  • Thank you received: 0
6 years 11 months ago #292538

I removed just this snippet of code and it seems to be working.

<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.

  • Posts: 83766
  • Thank you received: 13555
  • MODERATOR
6 years 11 months ago #292553

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

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

Time to create page: 0.114 seconds
Powered by Kunena Forum
loading