Search found 34 matches

Search found 34 matches

Re: Get Customer Group ID in header

Hi IP_CAM, I could not get this working. Instead of using vqmod, I directly hardcoded the codes in the header.php and header.tpl. Regardless of loggin in and loggin out, it does not output anything in the placeholder. What am I missing? Regards, Santosh straightlight did it again! What would we do, ...

Jump to post
  • Mon Jul 11, 2016 2:31 am
  • Replies 14
  • Views 3726
Re: Get Customer Group ID in header

I want to display the message on header, near login link, ie, on every page.

Thanks

cyclops12 wrote:sorry i think i misunderstood.....where exactly do you want to display this message....on what page ?

Jump to post
  • Mon Jul 04, 2016 5:59 am
  • Replies 14
  • Views 3726
Re: Get Customer Group ID in header

How is it added? I added it like this: <?php class ControllerCommonHeader extends Controller { public function index() { if (!$this->customer->isLogged()) { $this->session->data['redirect'] = $this->url->link('account/account', '', true); $this->response->redirect($this->url->link('account/login', '...

Jump to post
  • Mon Jul 04, 2016 4:57 am
  • Replies 14
  • Views 3726
Re: Get Customer Group ID in header

Does not seem to work for header. Throws error: Notice: Undefined variable: customer_group_id in D:\wamp\opencart\catalog\view\theme\default\template\common\header.tpl on line 99 custom_links_customer_group_account_oc_22.xml VqMod, tested on OC v.2.2.x only! <?xml version="1.0" encoding="UTF-8"?> <m...

Jump to post
  • Mon Jul 04, 2016 4:20 am
  • Replies 14
  • Views 3726
Re: Get Customer Group ID in header

Thanks cyclops12, but those codes don't work for OC 2.2.

cyclops12 wrote:This may be of help

Jump to post
  • Mon Jul 04, 2016 4:03 am
  • Replies 14
  • Views 3726
Get Customer Group ID in header

Hello, Can anyone guide me on how to get the customer group id in the header. I need to show some specific texts depending on the ID of the customer group when the user logs in. This is basically what I want to achive: If customer group id = 2, show "You are a wholesale customer". If customer group ...

Jump to post
  • Mon Jul 04, 2016 2:17 am
  • Replies 14
  • Views 3726
Re: Gallery Images (Free) - Mod for display of Gallery Name

Hi, This was just something I needed so I developed it for myself and it works fine for my client. I just thought I would share it with the community. I'm not sure why you would have a gallery without an image in it?? That would be my suggestion. Put an image in the gallery or delete the gallery. C...

Jump to post
  • Mon Jul 28, 2014 8:43 pm
  • Replies 3
  • Views 2563
Re: Gallery Images (Free) - Mod for display of Gallery Name

If you don't have any image on the gallery, it gives following error. Isn't it supposed to display the gallery name and show blank instead of images? Here is the error it throws: Notice: Undefined offset: 0 in /home/mydomain/public_html/catalog/view/theme/mytheme/template/module/gallimage.tpl on lin...

Jump to post
  • Wed Jul 16, 2014 4:25 am
  • Replies 3
  • Views 2563
File/folder access to only wholesale customers

Hi everyone, I am using OC v1.5.6 I have made an information page with product price lists and linked them to pdf and xls files in the server. They are meant to be downloaded and viewed only by wholesale customers. In order to do this, I have made a modification in my information module and made thi...

Jump to post
  • Wed Feb 26, 2014 3:02 am
  • Replies 4
  • Views 1133
Hide or disable Delivery Method for Wholesale Users

Hello, I have used Shipping Extension UPS and USPS. I want to disable this (Step 4: Delivery Method) for wholesale users because this will not be valid for them. I tried to use the following conditional php code to disable this but to no avail (in template/checkout/checkout.tpl): <?php $customer_gro...

Jump to post
  • Fri Feb 21, 2014 11:43 pm
  • Replies 1
  • Views 333
Restrict access to Information Page to a customer group

Hello, OC 1.5.6. I have a information page which should be accessible by only those users who belong to the wholesale group. If guest users click on this page link, they should be redirected to the login page. If they login but are not in the wholesale group, they should see an error page or a custo...

Jump to post
  • Thu Jan 16, 2014 11:35 pm
  • Replies 1
  • Views 489
Re: authorize.net automatic status update

Thanks for the info. I will definitely look into Q's module. Bytheway, is it possible to automatically update the status in OC once the payment goes successfully in authorize.net? I have set the initial status as "Pending". Customer checks out with payment successful message. Now without me having t...

Jump to post
  • Sat Jan 04, 2014 2:55 am
  • Replies 7
  • Views 867
authorize.net automatic status update

I am using OC 1.5.6. I am using the authorize.net AIM Payment module. I placed an order, and it transferred to authorize.net. I could see the transaction on authorize.net (it was authorized/awaiting capture). I received an e-mail to my home e-mail confirming the order and telling me that my order wo...

Jump to post
  • Sat Jan 04, 2014 1:41 am
  • Replies 7
  • Views 867
Re: Adding "current" class to custom information menu items

Resolved. Used $title to check against menu items, ie: <a class="<?php if($title == 'The Test') {echo "current";} else {echo "not-current";}?>" href="index.php?route=information/information&information_id=8">THE TEST</a> Hello circey, Thanks a lot, but how do I get the page name dynamically in the ...

Jump to post
  • Wed Oct 16, 2013 2:35 am
  • Replies 2
  • Views 627
Enable customers to reserve a product in advance

Is there any module that enables customers to reserve a product in advance of its arrival and for the payment not to be taken until we confirm the item is in stock. Thank you.

Jump to post
  • Thu Jan 03, 2013 11:38 pm
  • Replies 1
  • Views 228
Re: option combination problem

Thanks tdaubs. Seems like the solution to my problem. I will buy and try it.

Jump to post
  • Fri Dec 21, 2012 4:20 am
  • Replies 2
  • Views 236
option combination problem

If you have following options for a product: Product: Shirt Color: black, Qty: 0 Color: White, Qty: 10 Size: large, Qty: 10 Size: medium, Qty: 10 Now if someone chooses black and large, they cannot check out because the black shirt is out of stock (regardless the large size is in stock). But there c...

Jump to post
  • Fri Dec 21, 2012 1:53 am
  • Replies 2
  • Views 236
Re: OpenCart 1.5.4 Bug Thread

envong wrote:I find a bug about the output of the results of clicking on a tag in product pages.
when I add some tags for a product and then click the tag from product pages, and I got an empty result.
So, I think this is a bug.
Please have a check and fix it.
Your tags need to be in all lowercase.

Jump to post
  • Tue Nov 20, 2012 7:55 pm
  • Replies 199
  • Views 181098
Re: [1.5.4] FEDEX module is totally DEAD

It works. Do the following. Download latest OC from github. Replace all these files from the github download to your server: admin/controller/shipping/fedex.php admin/language/english/shipping/fedex.php admin/view/template/shipping/fedex.tpl catalog/language/english/shipping/fedex.php catalog/model/...

Jump to post
  • Fri Sep 14, 2012 3:49 am
  • Replies 33
  • Views 15226

Search found 34 matches