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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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! |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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! |
|
#3
| ||||
| ||||
| 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. |
|
#4
| |||
| |||
| 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. |
|
#5
| ||||
| ||||
| 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 ;( |
|
#6
| ||||
| ||||
| 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
Code: and find_in_set('".$customer_group_id."', products_hide_from_groups) = 0
Code: where p.products_status = '1' 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
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. |
|
#7
| |||
| |||
| 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. |
|
#8
| ||||
| ||||
| 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. |
|
#9
| |||
| |||
| 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. |
|
#10
| ||||
| ||||
| Be more specific if you would like some help.
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| 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 |