Announcement

Collapse

Posting Rules

Posting Rules
This forum was created to help 3dcart users share tips on getting the best out of the service, offer knowledge and experiences about e-commerce in general, and to promote a positive environment in which our merchants can request/dispense advice regarding best practices.

The forum was not created for 3dcart users to submit requests for customer support. Any support related thread will be removed and a support ticket will be placed on your behalf. If you have technical difficulties please visit http://support.3dcart.com.

The 3dcart forum is also not intended to be a medium in which to express dissatisfaction about 3dcart's service, policies or its management and staff. Threads of this nature will also be removed from the forum. If a support issue with your 3dcart store was not resolved in a satisfactory manner; or if you feel that a particular 3dcart offering/policy is not to your liking, please let us know by emailing [email protected] so we can address your concerns directly.

Again, our purpose is to cultivate a positive learning environment for our merchants rather than platform in which to express grievances.

Very Important Rules:
* Never give away your store administration login/password in this forum.

Should you need technical help, please let 3dcart staff help.
Also, please be aware that 3dcart staff will NEVER need to ask for your 3dcart related passwords.

General Rules:
* While debate and discussion are acceptable, we will never tolerate rudeness, insulting posts, personal attacks or inflammatory posts. Our decision is final in these matters.
* Please refrain from posting meaningless threads, one word (or short) nonsensical posts, or similar postings.
* Multiple or repeated posting in order to increase your post count is not allowed.
* Advertising, spamming and trolling is not allowed. This includes using the forum email and Private message system to spam other members.
* We also do not allow posts that are sexual in nature.
* Please wait at least 24 hours before bumping posts.
* Discussion of illegal activities such as software and music piracy and other intellectual property violations are not allowed.
* Each member is allowed one login account. Registering with multiple accounts is not allowed.
* We reserve the right to remove offensive posts without notice.
* We also reserve the right to remove postings which are in violation of our specified posting rules
* Also, while these rules cover most common situations, they cannot anticipate everything. Consequently, we reserve the right to take any actions we deem appropriate to ensure these forums are not disrupted or abused in any way.
* You cannot post any affiliate or referral links, or post anything asking for a referral. Such posts will be subject to removal.
* You cannot post advertisements or notices for contests.
* We also reserve the right to ban anyone who willfully violates the forum rules, as access to our support forums are a privilege and not a right. A banned customer is still entitled to support from the support system, but will not be able to participate in the forum.
See more
See less

Code to check customer group logged into on item page

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Code to check customer group logged into on item page

    Does anyone have the code that I can use to check the logged in customer group on the item page? I want to try and hide the add to cart and qty fields if not logged in as a specific customer group. I am currently using the feature within 3Dcart to hide items using price levels from customer groups and that works by clocking the entire item. However I want to show the item and the details, but hide only the add to cart and qty fields on the item page if not logged into a specific customer group.

  • #2
    I'm looking for something similar so I can add Google Analytics code to differentiate customer groups on GA reports. Please keep me in mind if you find what you're looking for.
    - Dean P. e-commerce and small business consulting

    Comment


    • #3
      I have not found a way to determine Customer Group per se, however, you can determine Price Level
      You can assign a customer group to a price level

      For example: 'Commercial2' is assigned 'Price Level 2'

      So this might work, might not, just depends on your needs

      In the Frame.html page, add a hidden element near the top to read the PriceLevel value, something like this
      <span class="hidden" id="priceLvl">[price_level]</span>

      [price_level] will return teh numeric value of the Price Level of the user

      Then in your script file, you can check for it and take the action needed
      e.g.
      //if Price Level == ' ', then No Price Level i.e. Retail not Commercial
      if($('#priceLvl').text() != ''){
      do something;
      } else {
      do something else
      }

      If multiple PLs you could check the value to take action on a specific level, etc.
      e.g. if($('#priceLvl').text() == '2'){ }
      Last edited by lazarusjl; 08-07-2018, 03:52 PM.

      Comment

      Working...
      X