[Skip to main content](#vessel-content)

#   msrp and price in content module

##

- **[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")**
- [![netpastor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9934-netpastor "View netpastor's Profile") Topic Author
- [ Offline](/forum/user/9934-netpastor)

Less More

- Posts: 55
- Thank you received: 3
-
-

13 years 1 month ago [\#124819](#124819) by [netpastor](/forum/user/9934-netpastor "View netpastor's Profile")  *[msrp and price in content module](/forum/26-product-category-display/862263-msrp-and-price-in-content-module#124819 "-- url of the page with the problem -- :   new.amothersart.com.au/Products-listing/product/listing.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  So - what I would like to achieve is in the &quot;grab a bargain&quot; hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.  Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.  Wondering where I find both the code, and the best way to create an ovveride for this one.  Ta  ian")* was created by *[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")*

-- url of the page with the problem -- : [ new.amothersart.com.au/Products-listing/product/listing.html](http://new.amothersart.com.au/Products-listing/product/listing.html)
-- HikaShop version -- : 2.2.1
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.3

So - what I would like to achieve is in the "grab a bargain" hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.

Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.

Wondering where I find both the code, and the best way to create an ovveride for this one.

Ta

ian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjIyNjMtbXNycC1hbmQtcHJpY2UtaW4tY29udGVudC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#124881](#124881) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[msrp and price in content module](/forum/26-product-category-display/862263-msrp-and-price-in-content-module#124881 "-- url of the page with the problem -- :   new.amothersart.com.au/Products-listing/product/listing.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  So - what I would like to achieve is in the &quot;grab a bargain&quot; hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.  Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.  Wondering where I find both the code, and the best way to create an ovveride for this one.  Ta  ian")*

Hi,

You will have to override the view "product / listing_price", in this code you will see that the MSRP is not displayed in the modules thanks to the code: Code:

&amp;&amp; $this-&gt;params-&gt;get('from_module','') == ''

So you have to create your own if condition to display the msrp with a strikethrough in the module.

The both modifications needs to be made in the same view.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjIyNjMtbXNycC1hbmQtcHJpY2UtaW4tY29udGVudC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")**
- [![netpastor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9934-netpastor "View netpastor's Profile") Topic Author
- [ Offline](/forum/user/9934-netpastor)

Less More

- Posts: 55
- Thank you received: 3
-
-

13 years 1 month ago [\#125003](#125003) by [netpastor](/forum/user/9934-netpastor "View netpastor's Profile")  Replied by *[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")* on topic *[msrp and price in content module](/forum/26-product-category-display/862263-msrp-and-price-in-content-module#125003 "-- url of the page with the problem -- :   new.amothersart.com.au/Products-listing/product/listing.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  So - what I would like to achieve is in the &quot;grab a bargain&quot; hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.  Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.  Wondering where I find both the code, and the best way to create an ovveride for this one.  Ta  ian")*

Thanks - that makes sense - and have proved what you're suggesting

i am thinking that the conditional statement that it needs to be is related to the id number of the module concerned (as it is really just for a single instance of the content module; but I am not sure what syntax to use, as it is not as if it is a position, or module type.

suggestions?

ian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjIyNjMtbXNycC1hbmQtcHJpY2UtaW4tY29udGVudC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")**
- [![netpastor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9934-netpastor "View netpastor's Profile") Topic Author
- [ Offline](/forum/user/9934-netpastor)

Less More

- Posts: 55
- Thank you received: 3
-
-

13 years 1 month ago [\#125004](#125004) by [netpastor](/forum/user/9934-netpastor "View netpastor's Profile")  Replied by *[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")* on topic *[msrp and price in content module](/forum/26-product-category-display/862263-msrp-and-price-in-content-module#125004 "-- url of the page with the problem -- :   new.amothersart.com.au/Products-listing/product/listing.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  So - what I would like to achieve is in the &quot;grab a bargain&quot; hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.  Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.  Wondering where I find both the code, and the best way to create an ovveride for this one.  Ta  ian")*

this one doesn't seem to do it
but wondering if it isn't for Joomla 3

if ($module-&gt;id == 104) echo "stuff";

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjIyNjMtbXNycC1hbmQtcHJpY2UtaW4tY29udGVudC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#125022](#125022) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[msrp and price in content module](/forum/26-product-category-display/862263-msrp-and-price-in-content-module#125022 "-- url of the page with the problem -- :   new.amothersart.com.au/Products-listing/product/listing.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  So - what I would like to achieve is in the &quot;grab a bargain&quot; hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.  Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.  Wondering where I find both the code, and the best way to create an ovveride for this one.  Ta  ian")*

The module id is in: $this-&gt;params-&gt;get('from_module','')
So you can do: Code:

if($this-&gt;params-&gt;get('from_module','') == '104') echo "stuff";

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjIyNjMtbXNycC1hbmQtcHJpY2UtaW4tY29udGVudC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")**
- [![netpastor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9934-netpastor "View netpastor's Profile") Topic Author
- [ Offline](/forum/user/9934-netpastor)

Less More

- Posts: 55
- Thank you received: 3
-
-

13 years 1 month ago [\#125027](#125027) by [netpastor](/forum/user/9934-netpastor "View netpastor's Profile")  Replied by *[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")* on topic *[msrp and price in content module](/forum/26-product-category-display/862263-msrp-and-price-in-content-module#125027 "-- url of the page with the problem -- :   new.amothersart.com.au/Products-listing/product/listing.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  So - what I would like to achieve is in the &quot;grab a bargain&quot; hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.  Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.  Wondering where I find both the code, and the best way to create an ovveride for this one.  Ta  ian")*

brilliant

new edited line

if((isset($this-&gt;row-&gt;product_msrp) &amp;&amp; @$this-&gt;row-&gt;product_msrp &gt; 0.0 &amp;&amp; JRequest::getCmd('layout') == 'show' &amp;&amp; $this-&gt;params-&gt;get('from_module','') == '') &#124;&#124; $this-&gt;params-&gt;get('from_module','') == '104') {

thanks
Ian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjIyNjMtbXNycC1hbmQtcHJpY2UtaW4tY29udGVudC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")**
- [![netpastor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9934-netpastor "View netpastor's Profile") Topic Author
- [ Offline](/forum/user/9934-netpastor)

Less More

- Posts: 55
- Thank you received: 3
-
-

13 years 1 month ago [\#125028](#125028) by [netpastor](/forum/user/9934-netpastor "View netpastor's Profile")  Replied by *[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")* on topic *[msrp and price in content module](/forum/26-product-category-display/862263-msrp-and-price-in-content-module#125028 "-- url of the page with the problem -- :   new.amothersart.com.au/Products-listing/product/listing.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  So - what I would like to achieve is in the &quot;grab a bargain&quot; hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.  Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.  Wondering where I find both the code, and the best way to create an ovveride for this one.  Ta  ian")*

actually this is better as it only shows then when there is an msrp price listed

if((isset($this-&gt;row-&gt;product_msrp) &amp;&amp; @$this-&gt;row-&gt;product_msrp &gt; 0.0 &amp;&amp; JRequest::getCmd('layout') == 'show' &amp;&amp; $this-&gt;params-&gt;get('from_module','') == '') &#124;&#124; @$this-&gt;row-&gt;product_msrp &gt; 0.0 &amp;&amp; $this-&gt;params-&gt;get('from_module','') == '104' )

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjIyNjMtbXNycC1hbmQtcHJpY2UtaW4tY29udGVudC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")**
- [![netpastor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9934-netpastor "View netpastor's Profile") Topic Author
- [ Offline](/forum/user/9934-netpastor)

Less More

- Posts: 55
- Thank you received: 3
-
-

13 years 1 month ago [\#127938](#127938) by [netpastor](/forum/user/9934-netpastor "View netpastor's Profile")  Replied by *[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")* on topic *[msrp and price in content module](/forum/26-product-category-display/862263-msrp-and-price-in-content-module#127938 "-- url of the page with the problem -- :   new.amothersart.com.au/Products-listing/product/listing.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  So - what I would like to achieve is in the &quot;grab a bargain&quot; hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.  Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.  Wondering where I find both the code, and the best way to create an ovveride for this one.  Ta  ian")*

wondering if there is a simple edit to achieve the same on the product listing page
cannot seem to find a simple flag to turn this on in config

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjIyNjMtbXNycC1hbmQtcHJpY2UtaW4tY29udGVudC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#127961](#127961) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[msrp and price in content module](/forum/26-product-category-display/862263-msrp-and-price-in-content-module#127961 "-- url of the page with the problem -- :   new.amothersart.com.au/Products-listing/product/listing.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  So - what I would like to achieve is in the &quot;grab a bargain&quot; hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.  Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.  Wondering where I find both the code, and the best way to create an ovveride for this one.  Ta  ian")*

Hi,

To display the msrp in the listing page, you have to remove Code:

&amp;&amp; JRequest::getCmd('layout') == 'show'

in the if conditions.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjIyNjMtbXNycC1hbmQtcHJpY2UtaW4tY29udGVudC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")**
- [![netpastor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9934-netpastor "View netpastor's Profile") Topic Author
- [ Offline](/forum/user/9934-netpastor)

Less More

- Posts: 55
- Thank you received: 3
-
-

13 years 1 month ago [\#128072](#128072) by [netpastor](/forum/user/9934-netpastor "View netpastor's Profile")  Replied by *[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")* on topic *[msrp and price in content module](/forum/26-product-category-display/862263-msrp-and-price-in-content-module#128072 "-- url of the page with the problem -- :   new.amothersart.com.au/Products-listing/product/listing.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  So - what I would like to achieve is in the &quot;grab a bargain&quot; hikashop content module to show both the msrp price as well as the discount / normal price; with the msrp price with a strikethrough.  Looked to go into an ovverride of the module - but looks like the module is not built with normal Joomla overrides in place; not is their a function to create and apply an alternative layout.  Wondering where I find both the code, and the best way to create an ovveride for this one.  Ta  ian")*

Ok
sort of works
I now get a double up of the PRODUCT_MSRP_AFTER words echo'd twice on the product page
ian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjIyNjMtbXNycC1hbmQtcHJpY2UtaW4tY29udGVudC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.071 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
