26.10.2014 06:44
|
|
sabaka
Name: sabaka
09.10.2011
Posts: 98
|
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
|
|
sabaka
Name: sabaka
09.10.2011
Posts: 98
|
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
Last change: 26.10.2014 09:39
|
|
26.10.2014 20:01
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25934
|
|
|
27.10.2014 10:19
|
|
sabaka
Name: sabaka
09.10.2011
Posts: 98
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Posts: 25934
|
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
|
|
sabaka
Name: sabaka
09.10.2011
Posts: 98
|
Aw: Disable buy button for product without price
Thanks, will try to adopt this.
|
|
15.11.2014 07:46
|
|
sabaka
Name: sabaka
09.10.2011
Posts: 98
|
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
|
|