Shoppica 2 – Enable Cart per Customer Type

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeShoppica 2 – Enable Cart per Customer Type

This topic has been marked as not resolved.

I am trying to create a dual purpose site whereby pricing is displayed all the time but Enable_Cart is OFF by default unless a customer logs in as a specific Customer Group.  ie Consumers have prices, but cannot see any ‘Add to Cart’ buttons and Wholesale (logged in customers) see Special prices and DO have ‘Add to Cart’ buttons.

I can see from the code that there is a variable set in the template files as:
$tbData->common['checkout_enabled'];  but I cannot locate where this is originally set. I would like to add some logic at it’s source to take into account the Customer Group Id.

I have years of PHP experience, so I simply need to be pointed at the correct file OR the recommended technique for making this change.

(I know that I could simply add logic to the various template pages that can show the ‘Add to Cart’ button but I would prefer to update the object at source to make this update more ‘clean’.

February 2, 2013 at 1:04 am #17978
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
February 4, 2013 at 4:58 pm #18112
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.