Jump to content

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

Add Vendor Profile To Product Page? Rate Topic   - - - - -

 
  • ecokate
  • Member
  • Trial users
  • Join Date: 27-Oct 20
  • 21 posts

Posted 18 January 2021 - 10:43 PM #1

I am trying to add a block to each product which provides details about the vendor of that specific product. This functionality was one of the reasons I bought the software.

 

For example, one of the webshops used by CS-Cart as an example on their own page is Yumbles: Keto Paleo Original Bread - Yumbles.com . 

 

They have this as a block with the title 'Meet your maker' which has:

 

- A background image

- A profile picture

- A description of the business 

- Two other products plus a link to all products by this vendor

 

I have tried adding the 'vendor information' block but all it does is add the name of the vendor. 

 

How do I do this? 



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

Posted 19 January 2021 - 01:39 PM #2

On the product details page you can use HTML block with SMARTY support. To get vendor information, please use the following code

{$company_data = $product.company_id|fn_get_company_data}

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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • ecokate
  • Member
  • Trial users
  • Join Date: 27-Oct 20
  • 21 posts

Posted 23 January 2021 - 06:01 PM #3

Thanks very much for the suggestion. I have tried it, but nothing happens. This is what I did:

 

1. Add a new HTML block with SMARTY support on the product details page

2. Edit the block and under the content tab paste '{$company_data = $product.company_id|fn_get_company_data}'

3. Save

4. Clear cache

 

....nothing (and, I checked that there was info written for the example vendor)

 

Did I put the code in the right place? 

 

You can see here that the vendor logo shows up (I created this block at the same time, and it positioned in the same grid as the new HTML SMARTY block) -> https://www.moebelk....armhouse-chair/



 
  • Otho
  • Newbie
  • Members
  • Join Date: 07-Jan 21
  • 3 posts

Posted 02 February 2021 - 09:55 AM #4

Did you have any progress? I’m trying to display more products from the vendor on the product page. 



 
  • ecokate
  • Member
  • Trial users
  • Join Date: 27-Oct 20
  • 21 posts

Posted 15 February 2021 - 11:08 PM #5

Hi Otho, no progress. I was looking at the Yumbles code for the vendor info and it looks like this below. I am not sure how I would adapt this for my site, where I would need to paste the code. 

 

<div id="meet-your-maker">
<div class="cover" style="background-image: url(https://d1fm27ee7pjs...er_Cru8_2.jpg);">
<div>Meet your maker</div>
<img src="https://d1fm27ee7pjs...ler_Cru8_2.jpg"class="logo" alt="Cru8 ">
</div>
<div class="content clearfix">
<div class="follow-seller"><div class="follow-seller">
<a class="follow-seller-button" id="btn_follow_company" data-follow="2" role="button" data-url=""><span>+</span> Follow Maker
</a>
</div>
<script type="text/javascript" src="js/addons/yumbles_follow/follow.js"></script></div>
<div class="seller-info">
<p></p><p>Guilt free, raw and powerful superfood snacks created by someone who has experienced the positive results of high-raw eating firsthand.</p>
<p>Founder Alexi has... <a href="https://www.yumbles....cru8.html">More»</a></p>
</div>
</div>
<div class="more-products">
<h4>Products by Cru8 </h4>
<ul class="clearfix">
<li>
<img width="100" height="100" src="https://d1fm27ee7pjs...ip_cookies.jpg"alt="Raw Gluten-Free Chocolate Chip Cookies">
<span class="more-products_product-wide">Raw Gluten-Free Chocolate Chip Cookies</span>
<span class="more-products_product-narrow">Raw Gluten-Free...</span>
</a>
</li>
<li>
<img width="100" height="100" src="https://d1fm27ee7pjs...9_4jyl-fy.jpeg"alt="Raw Gluten-Free Cacao Macaroons">
<span class="more-products_product-wide">Raw Gluten-Free Cacao Macaroons</span>
<span class="more-products_product-narrow">Raw Gluten-Free...</span>
</a>
</li>
<li class="more">
<div><strong>19</strong><br>more</div>
</a>
</li>
</ul>
</div>
</div>


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

Posted 16 February 2021 - 05:46 AM #6

Thanks very much for the suggestion. I have tried it, but nothing happens. This is what I did:

 

1. Add a new HTML block with SMARTY support on the product details page

2. Edit the block and under the content tab paste '{$company_data = $product.company_id|fn_get_company_data}'

3. Save

4. Clear cache

 

....nothing (and, I checked that there was info written for the example vendor)

 

Did I put the code in the right place? 

 

You can see here that the vendor logo shows up (I created this block at the same time, and it positioned in the same grid as the new HTML SMARTY block) -> https://www.moebelk....armhouse-chair/

 

Our code just retrieves vendor data from the database. Of course, you should use the $company_data variable to show necessary data in required html tags


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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)