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

#   Move Product Price Near Add To Cart Button

##

- **[missmonica](/forum/user/25117-missmonica "View missmonica's Profile")**
- [![missmonica's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-21.jpg)](/forum/user/25117-missmonica "View missmonica's Profile") Topic Author
- [ Offline](/forum/user/25117-missmonica)

Less More

- Posts: 29
- Thank you received: 0
-
-
-

13 years 3 weeks ago -  13 years 3 weeks ago [\#126347](#126347) by [missmonica](/forum/user/25117-missmonica "View missmonica's Profile")  *[Move Product Price Near Add To Cart Button](/forum/26-product-category-display/862553-move-product-price-near-add-to-cart-button#126347 "-- url of the page with the problem -- :http://www.homeangelz.co.uk/draft2013/index.php/bookings/book-services -- HikaShop version -- : 2.2.2 -- Joomla version -- :3.1.5 -- PHP version -- : 5.4.20  Hello,  &#42; I have been asked if (on all product pages) I can move the Price near to the Add To Cart button. Can you show me how to do this please? I think I have to edit the listing&#95;price.php file in the views area of Hika Shop but I know VERY LITTLE about php so could you please show me what I would need to move/edit? Below is the code from listing&#95;price. Hopefully this is the correct code to be edited.  &#42; (I have solved this now, I think. With Shipping Methods Could you also tell me, is it possible to set a minimum price amount for a product? My client has a product with options here:   www.homeangelz.co.uk/draft2013/index.php...ing-70-minimum-spend  and she wants the minimum amount for buyers to spend to be £70. If you could show me a way to do this I will be very grateful but if now, I understand because it sounds impossible to me.)  Many thanks, Monica.")* was created by *[missmonica](/forum/user/25117-missmonica "View missmonica's Profile")*

-- url of the page with the problem -- :http://www.homeangelz.co.uk/draft2013/index.php/bookings/book-services
-- HikaShop version -- : 2.2.2
-- Joomla version -- ![:3](/smile3.gif ":3").1.5
-- PHP version -- : 5.4.20

Hello,

1. I have been asked if (on all product pages) I can move the Price near to the Add To Cart button. Can you show me how to do this please? I think I have to edit the listing\_price.php file in the views area of Hika Shop but I know VERY LITTLE about php so could you please show me what I would need to move/edit? Below is the code from listing\_price. Hopefully this is the correct code to be edited.
2. (I have solved this now, I think. With Shipping Methods
Could you also tell me, is it possible to set a minimum price amount for a product? My client has a product with options here: [ www.homeangelz.co.uk/draft2013/index.php...ing-70-minimum-spend](http://www.homeangelz.co.uk/draft2013/index.php/bookings/book-services/product/898-professional-upholstery-cleaning-70-minimum-spend) and she wants the minimum amount for buyers to spend to be £70. If you could show me a way to do this I will be very grateful but if now, I understand because it sounds impossible to me.)

Many thanks,
Monica.

Last edit: 13 years 3 weeks ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 3 weeks ago [\#126474](#126474) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Move Product Price Near Add To Cart Button](/forum/26-product-category-display/862553-move-product-price-near-add-to-cart-button#126474 "-- url of the page with the problem -- :http://www.homeangelz.co.uk/draft2013/index.php/bookings/book-services -- HikaShop version -- : 2.2.2 -- Joomla version -- :3.1.5 -- PHP version -- : 5.4.20  Hello,  &#42; I have been asked if (on all product pages) I can move the Price near to the Add To Cart button. Can you show me how to do this please? I think I have to edit the listing&#95;price.php file in the views area of Hika Shop but I know VERY LITTLE about php so could you please show me what I would need to move/edit? Below is the code from listing&#95;price. Hopefully this is the correct code to be edited.  &#42; (I have solved this now, I think. With Shipping Methods Could you also tell me, is it possible to set a minimum price amount for a product? My client has a product with options here:   www.homeangelz.co.uk/draft2013/index.php...ing-70-minimum-spend  and she wants the minimum amount for buyers to spend to be £70. If you could show me a way to do this I will be very grateful but if now, I understand because it sounds impossible to me.)  Many thanks, Monica.")*

Hi,

1 - I am sorry, the view "listing_price" wasn't the good file.
Please do not post complete files of HikaShop. Don't worry, we already have them ![:)](/media/kunena/emoticons/8.png ":)")

The view that you want to override/customize is the view "product &#124; show_default".
The price is displaying using: Code:

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt; &lt;?php //LAYOUT listing_price if ($this-&gt;params-&gt;get('show_price')) { $this-&gt;row = &amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;/span&gt;

And the add to cart is with the quantity: Code:

if(empty ($this-&gt;element-&gt;characteristics) &#124;&#124; $this-&gt;params-&gt;get('characteristic_display')!='list'){ ?&gt; &lt;div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main"&gt; &lt;?php //LAYOUT quantity $this-&gt;row = &amp; $this-&gt;element; $this-&gt;ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . $this-&gt;row-&gt;product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }'; $this-&gt;setLayout('quantity'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/div&gt; &lt;?php }

While moving these blocks be careful with the PHP tags, you might need to open/close some.
If you made any kind of error while modifying the view, don't worry. You can simply delete your override in the backend (using the trash icon) and the original view will be restored.

2 - You're right, you can use the minimum price option of the shipping methods in order to create a minimum price restriction.

Kind regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [missmonica](/forum/user/25117-missmonica "View missmonica's Profile")

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

- **[missmonica](/forum/user/25117-missmonica "View missmonica's Profile")**
- [![missmonica's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-21.jpg)](/forum/user/25117-missmonica "View missmonica's Profile") Topic Author
- [ Offline](/forum/user/25117-missmonica)

Less More

- Posts: 29
- Thank you received: 0
-
-
-

13 years 2 weeks ago [\#127379](#127379) by [missmonica](/forum/user/25117-missmonica "View missmonica's Profile")  Replied by *[missmonica](/forum/user/25117-missmonica "View missmonica's Profile")* on topic *[Move Product Price Near Add To Cart Button](/forum/26-product-category-display/862553-move-product-price-near-add-to-cart-button#127379 "-- url of the page with the problem -- :http://www.homeangelz.co.uk/draft2013/index.php/bookings/book-services -- HikaShop version -- : 2.2.2 -- Joomla version -- :3.1.5 -- PHP version -- : 5.4.20  Hello,  &#42; I have been asked if (on all product pages) I can move the Price near to the Add To Cart button. Can you show me how to do this please? I think I have to edit the listing&#95;price.php file in the views area of Hika Shop but I know VERY LITTLE about php so could you please show me what I would need to move/edit? Below is the code from listing&#95;price. Hopefully this is the correct code to be edited.  &#42; (I have solved this now, I think. With Shipping Methods Could you also tell me, is it possible to set a minimum price amount for a product? My client has a product with options here:   www.homeangelz.co.uk/draft2013/index.php...ing-70-minimum-spend  and she wants the minimum amount for buyers to spend to be £70. If you could show me a way to do this I will be very grateful but if now, I understand because it sounds impossible to me.)  Many thanks, Monica.")*

Hi Jerome,

Thank you so much! I was able to do exactly what I needed thanks to the information you provided ![:)](/media/kunena/emoticons/8.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjI1NTMtbW92ZS1wcm9kdWN0LXByaWNlLW5lYXItYWRkLXRvLWNhcnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) 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.135 seconds

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

[](#top)
