Jump to content

Archived

This topic is now archived and is closed to further replies.

DivebombInc

Excludes based on page

Recommended Posts

Is there a way to exclude things like 'Add to Cart' buttons and price based on the page or product ID? I want to add a gallery of our work and exclude the add to cart and price.


 
OSCOM CE Phoenix v1.0.7.10

Share this post


Link to post
Share on other sites

Yes, that is possible but it would require adding code in several places. But if you just want a page to display images, using a product page isn't the best way to do it. There are addons for that purpose. You will need to find one that works with your version of oscommerce.

Share this post


Link to post
Share on other sites

There probably isn't one. Versions for Phoenix only get released if someone converts them. It is fairly common for popular and new addons. But for older ones that are not used by many sites, it probably won't happen unless someone is paid to convert it.

Share this post


Link to post
Share on other sites
6 hours ago, DivebombInc said:

Is there a way to exclude things like 'Add to Cart' buttons and price based on the page or product ID? I want to add a gallery of our work and exclude the add to cart and price.

One of the supporters code @burt has released for Phoenix blocks out the buy button if the product is out of stock. I believe this can be used to achieve what you are after - with some modifications. Suggest you consider becoming a Phoenix Supporter and contacting Gary directly about this.


CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Share this post


Link to post
Share on other sites

Why not just create a static page that includes all the images and text. Basic HTML will do that. Failing that look online for a php based image gallery and convert that to work with an oscommerce page.


REMEMBER BACKUP, BACKUP AND BACKUP

Get the latest Phoenix version here

It's easy to say to yes every question.

Share this post


Link to post
Share on other sites

I thought about this and could do this easily. I wanted continuity across the site though with all pages looking the same.


 
OSCOM CE Phoenix v1.0.7.10

Share this post


Link to post
Share on other sites
On 6/11/2020 at 2:10 AM, DivebombInc said:

Is there a way to exclude things like 'Add to Cart' buttons and price based on the page or product ID? I want to add a gallery of our work and exclude the add to cart and price.

you can turn it off in pi modules inn the admin section


you can cut up to 4 pages of your checkout by using my three add_ons

login create account in one page

Express checkout  

login pop up modal

Share this post


Link to post
Share on other sites
23 minutes ago, hungryfrank said:

you can turn it off in pi modules inn the admin section

That would effect all pages, even those that I want cart buttons and prices on.


 
OSCOM CE Phoenix v1.0.7.10

Share this post


Link to post
Share on other sites

the code is in. pi buy_button.php.  

 if ( $this->enabled ) {
       $this->group = 'pi_modules_' . strtolower(PI_BUY_GROUP);
around line 28

you can juste edit it or Make a duplicate module

9 minutes ago, DivebombInc said:

That would effect all pages, even those that I want cart buttons and prices on.

 


you can cut up to 4 pages of your checkout by using my three add_ons

login create account in one page

Express checkout  

login pop up modal

Share this post


Link to post
Share on other sites

@DivebombInc

On 6/10/2020 at 2:40 PM, DivebombInc said:

Is there a way to exclude things like 'Add to Cart' buttons and price based on the page or product ID? I want to add a gallery of our work and exclude the add to cart and price.

 

On 6/12/2020 at 7:22 AM, DivebombInc said:

I thought about this and could do this easily. I wanted continuity across the site though with all pages looking the same.

Take one of the 'static' pages, such as 'Terms and Conditions'. Copy and rename it (both the code and the language files). Replace everything between the opening and closing 'contentContainer' divs with your gallery code. Finally, add the link(s) to your gallery where ever you want them (navbar, footer, etc).

M

Share this post


Link to post
Share on other sites
On 6/12/2020 at 7:41 PM, kgtee said:

Just add a condition if price = 999999, no show buy button. Will this do?

This is what I was getting at. Based on some condition just exclude the cart button and price. Or if someone bought it for 999999, I could just retire and not worry about any of this.


 
OSCOM CE Phoenix v1.0.7.10

Share this post


Link to post
Share on other sites
13 hours ago, DivebombInc said:

This is what I was getting at. Based on some condition just exclude the cart button and price. Or if someone bought it for 999999, I could just retire and not worry about any of this.

You can also use stock quantity (in-stock). That might be better from the customer's perspective.

Or set the price to zero and stock quantity to zero so customer can't checkout with the item (if you've disabled checking out with no stock in admin).

Peter


CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Share this post


Link to post
Share on other sites

@DivebombInc

"If all you have is a hammer, everything looks like a nail"

If you want a gallery, make a gallery. Just because you could alter osC to become a gallery (sort of), should you? Don't try to make osC be something that it isn't.

jmho

Malcolm

Share this post


Link to post
Share on other sites

×