Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

    Default Is It Possible To Remove "Add This To My Cart" For Just Some Items

    I know this is an oddball question, and there might not be any workable solution. But nothing ventured, and all that.

    We're setting up a new bookseller website, www.book-oasis.com. Obviously it will be a while before this site is well-populated, so the owner has worked out a deal where she can promote books currently on Amazon, using special codes like:

    <iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ac&r ef=qf_br_asin_til&ad_type=product_link&tracking_id=boooas0d-20&marketplace=amazon&region=US&placement=B003IEJZRY&asins=B003IEJZRY&linkId=U5M ZJRWLSCNKRI2Z&show_border=true&link_opens_in_new_window=true">
    </iframe>

    which will create a listing like this: http://book-oasis.com/index.php?main...&products_id=1

    In order for a book cover to show up on the index page, it's necessary to save a copy of it, independent from the iframe listing, which unfortunately looks a little odd on the page listing. But this is only intended as a workaround for the next few months until the site takes off, so that's not a huge concern.

    What is an issue is, you're supposed to click on the Amazon listing, and go directly to Amazon to buy the book. But ZenCart is showing the standard "Add This To My Cart" button, which would take the person to the ZenCart checkout. Since this book isn't hosted on the Book Oasis server, that's not going to work.

    Is there a way to remove that button just on the Amazon books, but have it visible on "real" books that will be hosted and sold from the server? (fingers crossed)

    Thanks very much for any advice you can offer!!

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,881
    Plugin Contributions
    96

    Default Re: Is It Possible To Remove "Add This To My Cart" For Just Some Items

    You could use a different product type, like "Document - General", and mark that product type as no-add-to-cart.

  3. #3
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

    Default Re: Is It Possible To Remove "Add This To My Cart" For Just Some Items

    Well, that would be easy! Can I change existing entries, or will I have to go back and redo them from scratch?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Is It Possible To Remove "Add This To My Cart" For Just Some Items

    Also compare Document General and Document Product product types ...

    Document Products has all of the fields of a Product General and can also be turned off ... the advantage being if you want to show the information or if later you want this to be a regular Product General you have all of the information filled in ...

    There is not a setting in the Admin to change the Product Type of a Product, this would have to be done via phpMyAdmin or via the Install SQL Patch, once you get the hang of switching a Product from one Product Type to another ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

    Default Re: Is It Possible To Remove "Add This To My Cart" For Just Some Items

    Now I'm confused again. Do you mean I can't set up each book listing individually as one or the other; they all have to be one or the other unless I do something special in phpMyAdmin (which I have no idea how to do) or some kind of SQL patch?

  6. #6
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

    Default Re: Is It Possible To Remove "Add This To My Cart" For Just Some Items

    No, I tried it, and I can set up each new book individually. That's a relief. Well, it's a good thing I asked before I did too many listings, isn't it? So I won't have many to recreate.

    THANK YOU for your help on this...I was sure it was an insurmountable problem and we wouldn't be able to do the Amazon affiliate program after all. As always, you guys rock!!

  7. #7
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Is It Possible To Remove "Add This To My Cart" For Just Some Items

    As for the sql in the future, there's a few options depending on what the status is for the new product at that product type.

    Individual product update:
    Code:
    update products p set p.products_type=1 where p.products_id=10;
    Multiple product of that type, but not all:
    Code:
    update products p set p.producst_type=1 where p.products_id=10 or p.products_id=11;
    All product of that type:
    Code:
    update products p set p.products_type=1 where p.products_type=4;
    All product of that type but not one product:
    Code:
    update products p set p.producst_type=1 where p.products_type=4 and p.products_id != 12;
    All product of that type but not two or more product:
    Code:
    update products p set p.products_type=1 where p.products_type=4 and p.products_id != 13 and p.products_id != 14;
    All product regardless of product type (not suggested for everyone because of the constraints described above):
    Code:
    update products p set p.products_type=1;
    Even within those there are variations that can be done to make writing the list easier...

    Instead of each individual != can do:

    where p.products_id not in (15,16,17)

    The products_id values above relate to the product in question, the products_type value above is that for document - product in a default install...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v151 Getting rid of "add to cart" and just have a "buy" button
    By BryanKollar in forum General Questions
    Replies: 5
    Last Post: 22 Feb 2014, 06:41 PM
  2. How to Remove just one "Display Product Add to Cart Button"?
    By scottwww1 in forum General Questions
    Replies: 12
    Last Post: 29 Oct 2009, 12:39 AM
  3. Remove "Add: [ ]" and "Add selected products to cart" from product pages? possible?
    By edwardtilbury in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Sep 2008, 03:13 AM
  4. Replies: 7
    Last Post: 28 Mar 2008, 05:42 PM
  5. Remove "Add Selected Items to Cart" button at top of page & Disabling links
    By ahuacatlan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jul 2007, 04:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg