osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Hide Products for SPPC

This is a discussion on Hide Products for SPPC within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I am having dificulty adapting the Hide Products for SPPC found at osCommerce Community Add-Ons for oscMax. Has anyone successfuly ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 08-12-2008, 08:58 PM
New Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Strauss is on a distinguished road
Default Hide Products for SPPC

I am having dificulty adapting the Hide Products for SPPC found at osCommerce Community Add-Ons for oscMax.

Has anyone successfuly integrated this into osmax? I have used it on oscomerce with great success.

I sell photo's and I can't publicly display any of the photo's without a signed consent, so my solution was to only make them available to the users that they belong to, so this package is exactly what I'm looking for.

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 08-17-2008, 09:06 AM
New Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Strauss is on a distinguished road
Default Re: Hide Products for SPPC

Ok, I'm getting desperate now...

I need to get this intergration working, and I haven't even started to look at templates. PLEASE HELP!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-18-2008, 02:53 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 346
Thanks: 9
Thanked 27 Times in 26 Posts
Rep Power: 3
MindTwist has a spectacular aura aboutMindTwist has a spectacular aura about
Default Re: Hide Products for SPPC

I haven't checked that contribution, but I do have a store that only shows prices when customer_group is not 0.

SECURAME : Tu mayorista de CCTV, videovigilancia, camaras, minicamaras, seguridad - Bienvenidos a www.securame.com

In there you can see a box (up right) that tells that to see the prices, you need to be registered and validated, that store is not for final users, but only for resellers.
I would say that the only changes I had to do where on /includes/classes/PriceFOrmatter.php , where I would check customer_group to make sure it is not 0 before returning any prices. There might be some more changes done, but all in all, removing the prices is quite easy... You just need to check that customer_group is not 0 before showing any price.
__________________
MindTwist of Twisted Reality and Twisted Tienda
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-18-2008, 05:47 AM
New Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Strauss is on a distinguished road
Default Re: Hide Products for SPPC

Thanks, I have seen a lot of people talking about that option.
I don't care if customers can see the prices, it's the actual products that are of concern to me.

When I take photo's for people at an event, they don't sign an agreement which lets me publicly display their photo's and a lot of customers don't want their pictures available to the public. So I have to hide the entire product to stop the general public from viewing the prints for sale.

I thank you for your input however.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-18-2008, 06:19 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 346
Thanks: 9
Thanked 27 Times in 26 Posts
Rep Power: 3
MindTwist has a spectacular aura aboutMindTwist has a spectacular aura about
Default Re: Hide Products for SPPC

Oh, sorry about that... Guess I read too quickly your first post, I understood you wanted to hide the prices, what you want to do is hide the actual product, so people need to sign up and login before they can see any pictures. Can't help there then, sorry ;(
__________________
MindTwist of Twisted Reality and Twisted Tienda
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-18-2008, 06:31 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 346
Thanks: 9
Thanked 27 Times in 26 Posts
Rep Power: 3
MindTwist has a spectacular aura aboutMindTwist has a spectacular aura about
Default Re: Hide Products for SPPC

From quickly looking at the contribution, it seems well written and there should be no much problems adapting it to OSCMAX. As I thought it changes MANY files all along the store, since I guess it needs to change many SQL queries to make them not just check the status of the product (enabled or not), but also if it is enabled or not for a given customer group.

Now, if you check out the pics on the package, you have no need for the admin part, you can probably make it easier. You would still need to modify all (or most of) the files the contrib modifies, but just to look at what customer group the current customer belongs to.

They add to most queries:
Code:
and find_in_set('" . $customer_group_id . "', categories_hide_from_groups) = 0
or:
Code:
and find_in_set('".$customer_group_id."', products_hide_from_groups) = 0
So a:
Code:
where p.products_status = '1'
Becomes:
Code:
where p.products_status = '1' and find_in_set('" . $customer_group_id . "', categories_hide_from_groups) = 0 and find_in_set('".$customer_group_id."', products_hide_from_groups) = 0
If you just want a quick hack on your store, so products are not shown (are disabled) for customer_group 0, you would need to modify those same queries... BUT.

Here's my take, you really do NOT want to disable the products for customer_group 0, because then people will just see an empty store if they have not signed up. Also, robots and search engines will also just find an empty store, with no products at all.

If I were you, I would just hide the pictures if the customer has not signed up. You will probably have to do it yourself since I do not think you will find a contribution like this, but I would leave the store as it is, and allow averyone to see all products. I would probably even let people see the small pictures/thumbnails of the products when they are browsing the store.

BUT, when they are checking out a product, where they are supposed to see the big pictures, hide them. Even better, replace them for a default image that has the same size, is blurry, and some text like "You need to be signed up to see the images"

I guess you get the point... Hiding the products with the contribution you are looking at might be good for hiding some products for some groups. But if you want to hide everything, I do not think that's the way I would do it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-18-2008, 06:05 PM
New Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Strauss is on a distinguished road
Default Re: Hide Products for SPPC

I'll have a look into this further for a quick hack.
Hiding the products is fine because I will have publicly available pictures and services. It's only the personal photo's I need to hide.

So I have some nice photo's of native flowers and animals and landmarks for public sale. But photo's from the fancy dress birhday party are not for public sale.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-19-2008, 01:57 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 346
Thanks: 9
Thanked 27 Times in 26 Posts
Rep Power: 3
MindTwist has a spectacular aura aboutMindTwist has a spectacular aura about
Default Re: Hide Products for SPPC

If you go ahead and install Hide Products for SPPC, I do not think it should be too hard from what I have seen.

You even have diffs files of the installation, so you can clearly see exactly what was on the original file, and how has it been replaced. There are many files to change, but they are mostly small changes to do.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-19-2008, 03:43 AM
New Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Strauss is on a distinguished road
Default Re: Hide Products for SPPC

I've had no problems installing this on osCommerce with the SPPC mod, but I seem to be upsetting the osCMax mods, and the template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 08-19-2008, 12:27 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,982
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Hide Products for SPPC

Be more specific if you would like some help.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Hide products from customer groups for SPPC michael_s New osCommerce Contributions 1 08-18-2008 05:50 AM
Hide Categories & Products V1 michael_s New osCommerce Contributions 0 05-17-2008 11:13 AM
Hide Categories & Products V1 michael_s New osCommerce Contributions 0 04-27-2008 10:31 AM
How do I HIDE products that are out of stock? ryankan1 osCMax v2 Customization/Mods 1 10-24-2007 03:17 AM
Hide products from customer groups for SPPC michael_s New osCommerce Contributions 0 06-16-2007 10:11 AM


All times are GMT -8. The time now is 12:49 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax