Zen Cart Logo
Forums / All Other Contributions/Addons / Twitch Restrict Categories by Customer or Group

Twitch Restrict Categories by Customer or Group

Views: 25,390

Results 41 to 60 of 96
18 May 2015, 1:52 PM
#41
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Twitch Restrict Categories by Customer or Group

mattys:

Hi

I'm using zencart 1.51 and Twitch Restrict 14.c - Feb 14.2014.

I can hide a category, but customers not logged in can still see sub categories and products, this page https://www.jarbon.com/dev/index.php?main_page=product_info&cPath=42_140&products_id=202 is within a category that should be restricted.

is this because i am using Twitch Restrict 14.c - Feb 14.2014? if so, can i upgrade but still use zencart 1.5.1?

thanks

Yes you can upgrade, however you will need to merge the code not the files. The newest version carries the files for 1.54, the code remains relatively untouched. So line numbers will be off a bit in some of the files.

Prior to that it would be a good idea to check if the current version is installed correctly/new files were all uploaded. I'm finding a lot of the errors we are all experiencing with these carts relate to FTP transfer failures that are not reported by our hosts/FTP software.

19 May 2015, 2:32 PM
#42
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

cheers twitch

i have now upgraded to zencart 1.5.3 on a test site and have merged/uploaded files for TwitchRestrict_16a_for_154

This page https://www.jarbon.com/dev/index.php?main_page=product_info&cPath=42_140&products_id=202 is within a category, 'Sock Specials' (view the breadcrumb for more detail), that i have restricted to a test customer. There should be a link at the bottom of the main menu which is for the category i have restricted 'Sock Specials' but there isnt as you have to be logged in as the test customer to access. This is good.

However, I thought that upgrading would mean that products within the restricted category would also be restricted, it does mention this on the downloads page 'Inherited Product Restriction'.

Is there anything i am missing or does this sound like a file/database issue?

19 May 2015, 2:59 PM
#43
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

Further to my last post, i had a thought, the product here https://www.jarbon.com/dev/index.php?main_page=product_info&cPath=42_140&products_id=202 is in the 'Sock Specials' category, but is also within a sub category 'the exmoor sock', so am thinking maybe i have to restrict 'the exmoor sock' category for https://www.jarbon.com/dev/index.php?main_page=product_info&cPath=42_140&products_id=202 to be restricted also. i was going to test this and edited the customer who can access the restricted area so it is 'the exmoor sock' category that is restricted (i use the category id as the CatGroup ID), but whe i clicked submit i was taken to a blank customers.php page. I checked logs and here's what it says:

[19-May-2015 14:36:36 UTC] PHP Fatal error:  Call to undefined function zen_record_admin_activity() in /var/www/vhosts/jarbon.com/httpdocs/dev/vN56y_7qWgf/customers.php on line 299

The customers.php file has only had customisations for 'twitch restricted categories' so i just uploaded the hole file, in didnt need to merge, so that should be fine.

any ideas?

Matt

19 May 2015, 3:09 PM
#44
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

UPDATE - Regarding my last post(s), it is now restricting products so that's great. i had the product within a sub category also, and it was this sub category that i needed to restrict for the restriction to apply to the product also.

However, I am still getting blank customers.php page when editing and submitting (although the edits do save)

any ideas?

Matt

19 May 2015, 3:21 PM
#45
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Restrict Categories by Customer or Group

mattys:

UPDATE - Regarding my last post(s), it is now restricting products so that's great. i had the product within a sub category also, and it was this sub category that i needed to restrict for the restriction to apply to the product also.

However, I am still getting blank customers.php page when editing and submitting (although the edits do save)

any ideas?

Matt

Okay to recap...your previous problems with products in sub cats is fixed?

But now your customers.php page is grumpy?

And you're using what version of ZC?

With what version of Twitch Restrict?

And you are certain you have followed the install instructions and each of the files is actually placed on the remote server?

Answer those ^ then I'll have answers, not ideas ;)

19 May 2015, 4:08 PM
#46
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

twitchtoo:

Okay to recap...your previous problems with products in sub cats is fixed?

But now your customers.php page is grumpy?

And you're using what version of ZC?

With what version of Twitch Restrict?

And you are certain you have followed the install instructions and each of the files is actually placed on the remote server?

Answer those ^ then I'll have answers, not ideas ;)

Yes, i can confirm that the contribution is working, it's just that when updating customer info, admin/customers.php is blank paging. The error is:

[19-May-2015 14:36:36 UTC] PHP Fatal error:  Call to undefined function zen_record_admin_activity() in /var/www/vhosts/jarbon.com/httpdocs/dev/vN56y_7qWgf/customers.php on line 299

I am using zen cart 1.5.3 and TwitchRestrict_16a_for_154

Yes, have uploaded files and ran database sql, it is essentially working, it's just an issue with admin/customers.php

Matt

19 May 2015, 4:17 PM
#47
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Restrict Categories by Customer or Group

mattys:

Yes, i can confirm that the contribution is working, it's just that when updating customer info, admin/customers.php is blank paging. The error is:

[19-May-2015 14:36:36 UTC] PHP Fatal error: Call to undefined function zen_record_admin_activity() in /var/www/vhosts/jarbon.com/httpdocs/dev/vN56y_7qWgf/customers.php on line 299

> 
> I am using zen cart 1.5.3 and TwitchRestrict_16a_for_154
> 
> Yes, have uploaded files and ran database sql, it is essentially working, it's just an issue with admin/customers.php
> 
> Matt

Thanks Matt.  That error points are the code at line 299 -         zen_record_admin_activity('Customer record updated for customer ID ' . (int)$customers_id, 'notice');

It's saying undefined likely because it wasn't part of ZC 1.53... and it has been added for admin activity tracking in ZC 1.54.  

So, My advice would be to revert this file back to the 1.53 version then lookup the 'admin/customers.php' code changes in the install instructions for Twitch Restrict then manually install the TR code into the 1.53 file.  

This will prevent version mismatch... and I built the code - it only needs to be placed in the correct locations in each of the previous versions.  How it works hasn't changed :)

Another of the reasons why even I have to make these instructions to ensure 6 months from now I can see where it goes when there's a new ZC release ;)
19 May 2015, 4:27 PM
#48
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

ok, i just commented out line 299 and left the rest of the TR code there, all seems to be working fine, no blank page, restriction is working

hopefully it'll all be good

thanks for help Twitch :smile:

13 Aug 2015, 6:08 AM
#49
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

This may be the exact module I have been looking for. I am using 1.5.4. I need to set-up tier level pricing based on purchased membership. I will have 3 levels. Guest

(display retail pricing to the public), Wholesale (available to view and purchase to "gold" members only) and Platinum members available to view and purchase. I will have

attributes since this is for a furniture business (pieces in a bedroom set, etc.). My thinking is to have the same exact products in 3 different categories (determined by

membership package), the only difference would be the price of products based on membership paid. Can you tell me if this module would be a good fit based on my need?

Thank you.

14 Aug 2015, 4:42 PM
#50
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Restrict Categories by Customer or Group

creyesx6:

This may be the exact module I have been looking for. I am using 1.5.4. I need to set-up tier level pricing based on purchased membership. I will have 3 levels. Guest

(display retail pricing to the public), Wholesale (available to view and purchase to "gold" members only) and Platinum members available to view and purchase. I will have

attributes since this is for a furniture business (pieces in a bedroom set, etc.). My thinking is to have the same exact products in 3 different categories (determined by

membership package), the only difference would be the price of products based on membership paid. Can you tell me if this module would be a good fit based on my need?

Thank you.

This module or Twitch Wholesale will accomplish what you are trying to do. The trick is how you want to manage products, categories, and tier groups. See your email for more details.

31 Aug 2015, 12:25 PM
#51
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

I am running Zen Cart 1.51.

I am confused with the installation. The text twitch_restrict_cat_by_cust_or_group_16a_for_154.txt implies that the files in the download require code changes. After merging the downloaded files do I need to make all the code changes?

31 Aug 2015, 1:33 PM
#52
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Restrict Categories by Customer or Group

All Twitch modules come with full install/merge instructions for you to manually place the code #1
AND

the original files including core/template files with the Twitch code already installed/merged #2.

#1 - This allows you to work hands on with your cart - especially useful if there are many other modules installed.

#2 - For a brand new vanilla install of Zen Cart you will need to install any instances of the** SQL Updates **you find in the instructions and then you could upload the files to overwrite the originals. This option requires that you use the same version of the install files as your new zen cart and if anything goes wrong assumes you can read and follow option #1 if you needed to troubleshoot or just start over because you're working with a vanilla install of Zen.

Already it looks as though you're wanting to install Twitch Restrict for 1.54 into Zen 1.51. **Your only option is #1 **as you will encounter problems mashing/overwriting the new module files with your older cart.

Finally, if I were installing the Twitch Module I would upgrade Zen first, then add in all the new modules - then we're all on the same page and 'new' without the need to troubleshoot mismatched old/new code.

31 Aug 2015, 2:53 PM
#53
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

Is the download below valid for Zen Cart V1.51 if I merge the core files?

Twitch Restrict Categories by Customer or Group
for ZenCart v1.51 - Version 14a
January 13.2014

31 Aug 2015, 3:04 PM
#54
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Restrict Categories by Customer or Group

jodean:

Is the download below valid for Zen Cart V1.51 if I merge the core files?

Twitch Restrict Categories by Customer or Group
for ZenCart v1.51 - Version 14a
January 13.2014

Yes, once you have Twitch Restrict for 1.51 installed in Zen 1.51 read through the forum for the minor updates(if any) that apply to your version.

31 Aug 2015, 6:57 PM
#55
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

When developing a report with Papersize Letter, Orientation Landscape these parameters are ignored when sending a report to a PDF. The do work when the report is HTML.

31 Aug 2015, 7:45 PM
#56
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

Please ignore previous post. Sent to the wrong forum.

31 Aug 2015, 7:49 PM
#57
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

jodean:

When developing a report with Papersize Letter, Orientation Landscape these parameters are ignored when sending a report to a PDF. The do work when the report is HTML.

Please ignore this message. I sent it to the wrong forum.

5 Sep 2015, 6:03 PM
#58
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

I have installed Twitch for 1.51. I have six top level categories. The catgeories displays the top level categories in six rows. Is this a reported problem or does anyone have any idea what is causing the replication?

If you want to take a look at the page it is "middletennesseeflyfishing.com/shop"

5 Sep 2015, 6:16 PM
#59
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Restrict Categories by Customer or Group

jodean:

I have installed Twitch for 1.51. I have six top level categories. The catgeories displays the top level categories in six rows. Is this a reported problem or does anyone have any idea what is causing the replication?

If you want to take a look at the page it is "middletennesseeflyfishing.com/shop"

Looks like you have the category tabs code stuck in a loop. Check your install and the location of code insertion points related to the encapsulating brackets.

5 Sep 2015, 7:07 PM
#60
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Twitch Restrict Categories by Customer or Group

I did not insert the code myshelf. I merged the twitch files code with the existing 1.51 code. Do you have any idea which code that I need to look at?