Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Show Wish List In Block Rate Topic   - - - - -

 

Posted 14 July 2019 - 11:54 AM #1

hi my friend.
i have problem with wishlist.
i want to display wishlist in a block . but i'm can't! please help me find a smarty code to display wishlist in a block.
and please help me show "wishlist empty" when nothing is in wishlist.

 

2019_07_14_16_23_25_Window.png



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19775 posts

Posted 15 July 2019 - 05:52 AM #2

We have an addon for that 

 

https://www.ecom-lab...ent-add-on.html


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 04 August 2019 - 06:23 AM #3

We have an addon for that 

 

https://www.ecom-lab...ent-add-on.html

Hello dear friend, i have tried showing "wishlist" on the Header section, but products in the wishlist never showed up unless I was at the wishlist page; the list at other pages was blank.
Please guide me how can I implement user session and display wishlist for other pages.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19775 posts

Posted 05 August 2019 - 06:28 AM #4

Please contact us at our website

 

https://www.ecom-labs.com/?quote


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 06 August 2019 - 02:43 PM #5

Please contact us at our website

 

https://www.ecom-labs.com/?quote

i was send message to your site. but my dear friend please help me here.

i search to wishlist php code, but found nothing...

how is it possible work code in wishlist page? i mean, select a cod that work  for my wishlist but not work in another page.

i create a smarty block in header of default layout with under code:

{include file="addons/wishlist/views/wishlist/view.tpl"}

result:

 

2019_08_06_19_12_44_Window.png

 

in wishlist page but worked



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19775 posts

Posted 07 August 2019 - 05:56 AM #6

You should run functions from the view mode in this file for your block

 

app/addons/wishlist/controllers/frontend/wishlist.php


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 09 August 2019 - 03:43 PM #7

You should run functions from the view mode in this file for your block

 

app/addons/wishlist/controllers/frontend/wishlist.php

Hi dear friend, i'm working on wishlist.php file and "show module".
I'll tell you the result. Thanks.



 

Posted 09 August 2019 - 03:45 PM #8

You should run functions from the view mode in this file for your block

 

app/addons/wishlist/controllers/frontend/wishlist.php

 

Hi dear friend, i'm working on wishlist.php file and "view mode".
I'll tell you the result. Thanks.



 

Posted 10 August 2019 - 12:42 PM #9

You should run functions from the view mode in this file for your block

 

app/addons/wishlist/controllers/frontend/wishlist.php

hi friend, can you please give me more detail.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19775 posts

Posted 12 August 2019 - 05:47 AM #10

Hire someone to perform this modification for you


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 19 August 2019 - 08:10 AM #11

Hire someone to perform this modification for you

hi dear friend.

i use $smarty.session.wishlist.products array for show in wishlist in homepage

by:

{foreach from=$smarty.session.wishlist.products item='product'}
    {$product_data = fn_get_product_data($product.product_id, $auth)}
    {assign var="obj_id" value=$product_data.product_id}
    {assign var="obj_id_prefix" value="`$obj_prefix``$product_data.product_id`"}
    {$product.main_pair = $product_data.product_id|fn_get_image_pairs:'product':'M':true:true}
    {include file="common/product_data.tpl" product=$product_data}
    {$product_data.image_pairs}
    .....
{/foreach}

and show wishlist in my block.

for wishlist button in product list and product page. by code:

<span id="wrap_button_wishlist_62" class="button-submit button-wrap-left">
    <span class="button-submit button-wrap-right">
        <button type="submit" id="button_wishlist_62" class="button-submit-big btn-bookmark
            {foreach $smarty.session.wishlist.products as $key}
                {if $key['product_id'] == $product.product_id}
                    active
                {/if}
            {/foreach}" name="dispatch[wishlist.add..62]"></button>
    </span>  
</span>

To check if the product is on the wishlist.
Adds an active class to the button if it is.
They all work, but only when I reload the page.
Is there a way to show the changes in the page, when the wishlist button is clicked, so that the active class button and the product appear in the block without having to reload the whole page?