Disable buy button for product without price

26.10.2014 06:44
#1
sabaka
Joomshopping forum user no avatar
Name: sabaka
09.10.2011
Posts: 98
Quote
Disable buy button for product without price

Hello,

I have product price group plugin and have items that are only for some groups so i set price only for that group in card, but when i set aceess level others dont see this products at all.

But would be good if Public could access this item but if no price set would not be able to put it to cart.


Joomla: 3.3.6
JoomShopping: 4.7.1
 
26.10.2014 08:46
#2
sabaka
Joomshopping forum user no avatar
Name: sabaka
09.10.2011
Posts: 98
Quote
Aw: Disable buy button for product without price

If there is no native addon or option maybe i can modify code somewhere to hide buy button in list/item card when Price = 0?


Joomla: 3.3.6
JoomShopping: 4.7.1

Letzte Änderung: 26.10.2014 09:39
 
26.10.2014 20:01
#3
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: Disable buy button for product without price

http://www.webdesigner-profi.de/joomla-webdesign/shop/addons/product-usergroup-permissions.html?lang=en

 
27.10.2014 10:19
#4
sabaka
Joomshopping forum user no avatar
Name: sabaka
09.10.2011
Posts: 98
Quote
Aw: Disable buy button for product without price

Thanks, but this is very complicated setup and i need to re-setup all items... And of course buy plugin ttat is not cheapest one...

basically what would be fine is if user see price = 0 Buy button is hidden.

Maybe You can tell some simple code tweak?


Joomla: 3.3.6
JoomShopping: 4.7.1
 
27.10.2014 12:23
#5
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: Disable buy button for product without price

Change template

components\com_jshopping\templates\default\list_products\product.php -

if ($product->product_price<=0){
...
...

}

and

components\com_jshopping\templates\default\product\product_default.php

if ($this->product->getPriceCalculate()<=0){
....
..
}

 
27.10.2014 15:11
#6
sabaka
Joomshopping forum user no avatar
Name: sabaka
09.10.2011
Posts: 98
Quote
Aw: Disable buy button for product without price

Thanks, will try to adopt this.

 
15.11.2014 07:46
#7
sabaka
Joomshopping forum user no avatar
Name: sabaka
09.10.2011
Posts: 98
Quote
Aw: Disable buy button for product without price

Hello, It worked i hided buy button and price, but i have price in multicurrency addon, changing this helps with local currency but additional currency still shows 0 EUR, maybe i can hide it in same manner? Where it can be done?


Joomla: 3.3.6
JoomShopping: 4.7.1
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.