Wishlist

06.12.2016 14:46
#1
ksg1076
Joomshopping forum user no avatar
Name: Sergey
10.07.2011
Posts: 5
Quote
Wishlist

Good day.
Faced with this problem: If the store including the setting-function "Wishlist", and at the same time use a store "as a catalog", the function "wish list" - does not work, and the button respectively is not shown as a button "Buy".
Now I JoomShop 4.15.0, Joomla 3.6.4
Just earlier version, everything worked as it should, to my wish list items can be put even in the "Catalog" mode.
Does anyone know where fix this condition? How to get around?


Joomla: 3.6.4
JoomShopping: 4.15.0
PHP: 7.0
 
06.12.2016 15:05
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: Wishlist

No option.

Need change code.

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

copy code

<?php if ($this->enable_wishlist){?>
<input type="submit" class="btn button" value="<?php print _JSHOP_ADD_TO_WISHLIST?>" onclick="jQuery('#to').val('wishlist');" />
<?php }?>

before <input type="hidden" name="to" id='to' value="cart" />


2.
components\com_jshopping\helpers\cart.php

public static function checkAdd(){
$jshopConfig = JSFactory::getConfig();
return (!$jshopConfig->user_as_catalog && getDisplayPriceShop());
}

change to

public static function checkAdd(){

return 1;
}


Letzte Änderung: 06.12.2016 15:16
 
06.12.2016 18:44
#3
ksg1076
Joomshopping forum user no avatar
Name: Sergey
10.07.2011
Posts: 5
Quote
Aw: Wishlist

Oh my God! You're right! Why did not I think of it myself? Of course you are absolutely right! Working! Thank you very much!

 
07.12.2016 08:13
#4
ksg1076
Joomshopping forum user no avatar
Name: Sergey
10.07.2011
Posts: 5
Quote
Aw: Wishlist

A task. After updating all changes disappear. Each time have to change? What can you come up with in such a situation?

 
07.12.2016 08:17
#5
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: Wishlist

-Template
1. Copy folder 'default' to your folder 'my',
2. Copy 'default.css' to 'my.css',
3. change only file from template 'my'

 
07.12.2016 08:26
#6
ksg1076
Joomshopping forum user no avatar
Name: Sergey
10.07.2011
Posts: 5
Quote
Aw: Wishlist

Yes, so I use the "My Template", but I'm talking about - "components file \ com_jshopping \ helpers \ cart.php"
This is where the condition display and hide the buttons "Buy" and "Wishlist".
If you do not "return 1;" - it will not work.

 
07.12.2016 08:38
#7
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: Wishlist

Will be fixed in new version. (for wishlist)


Letzte Änderung: 12.12.2016 09:07
 
07.12.2016 08:39
#8
ksg1076
Joomshopping forum user no avatar
Name: Sergey
10.07.2011
Posts: 5
Quote
Aw: Wishlist

Thank you very much!

 


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.