Jump to content



Member Since 09 Sep 2013
Offline Last Active Mar 23 2014 11:14 PM

Topics I've Started

Add Product Code to Product Page

09 November 2013 - 04:31 AM


I'm trying to edit the Twigmo product page to add the product code to the detail.

I can't find how to do this?

Can anyone point me in the right direction (i.e. which file I should be looking at)?


Check for Vendor in Backend .tpl files

29 October 2013 - 03:36 AM


I'm trying to find a way to check for vendor page in the backend.

I.e. how to tell if the user is in admin backend or vendor backend?

Any help would be much appeciated

Vendor Wholesale Cost rather then Commission

29 October 2013 - 01:19 AM


Instead of giving the Vendors commision of the products, we want to pay them the wholesale cost of the product.

e.g. Vendors will have a cost which we need to pay the Vendors when an items sells.

Vendor cost: $10
We sell for $15
Shipping: $5

There we want Vendors payment to be $10. This is not a $ or %, but moreso 2 different prices.

To me, this is much simpler then the commision payout, but I am not sure how to implement?

Any help would be much appreciated

Where is the Product Page layout file?

16 October 2013 - 05:54 AM


Please excuse my ignorance and I'm a newbie developer with CS-Cart.

I edited some product page data in: [THEME DIR]templates/common/product_data.tpl.

Can someone please help me out with editing the layout of this page. I understand how to do it using my_changes plugins and CSS, but I want to move and add fields and data to this page and I'm not sure how to outside of product_data.tpl.

BTW I'm using v4.

Thanks in advance!

Limit backend template data per user

09 October 2013 - 09:28 AM


I want limit what Vendor can see in the CMS outside of the built-in permissions. e.g. We don't want vendors to see ANY customer data. I need to find the logged in user type and then I can restrict quite easily. e.g.

{if $profile_fields.B}
{if logged user != "vendor"} // I want to do this
{if $user_data.b_firstname || $user_data.b_lastname}
<p class="strong">{$user_data.b_firstname} {$user_data.b_lastname}</p>
{if $user_data.b_address}
{if $user_data.b_address_2}
{if $user_data.b_city || $user_data.b_state_descr || $user_data.b_zipcode}
<p>{$user_data.b_city}{if $user_data.b_city && ($user_data.b_state_descr || $user_data.b_zipcode)},{/if} {$user_data.b_state_descr} {$user_data.b_zipcode}</p>
{if $user_data.b_country_descr}<p>{$user_data.b_country_descr}</p>{/if}
{include file="views/profiles/components/profile_fields_info.tpl" fields=$profile_fields.B}
{if $user_data.b_phone}

The main problem I'm having is where do I locate the logged in user data?

Any help would be much appreciated.