Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Mar 2004
    Posts
    32
    Plugin Contributions
    0

    Default Limited free samples

    Hi All,

    I'm in the process of setting up a new Zen Cart install and I need to figure out a way to limit a single free sample of a physical item per either customer or address. Is there a way to set something like that up in Zen Cart?

    Thanks,
    J Silverman

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

    Default Re: Limited free samples

    Are the Free Samples actual Products or Attributes of a Product?

    If they are Attributes of a Product, do all Products use the same Option Name/Option Value combination or multiple different Option Name/Option Value combinations?
    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!

  3. #3
    Join Date
    Mar 2004
    Posts
    32
    Plugin Contributions
    0

    Default Re: Limited free samples

    They will be actual products.

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

    Default Re: Limited free samples

    The next thing would be the way to identify a Sample vs a Product ...

    How are these Sample Products identified from regular Products?

    If you have something to identify that something is a Sample, then it can be checked in the orders_products table to ensure that the customer can only get it once ...

    You can even go so far as to check customers on these Sample Products and if previously ordered the Add to Cart/Buy Now buttons are removed and show something like "One per Customer" ...
    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
    Mar 2004
    Posts
    32
    Plugin Contributions
    0

    Default Re: Limited free samples

    Well, I'm thinking of setting up a product specifically to be the sample product. So, there will be all the regularly priced items and one 'sample' free item (samples of all or most of the items will be shipped together via this one sample item).

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

    Default Re: Limited free samples

    You could test for the products_id and see if the Customer has an Order where that products_id is in the orders_products_table and if so, control if they can get it again or not ...

    NOTE: if you use the same products_id and just keep changing the Sample, then you cannot tell if they got Sample A vs Sample B ...
    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!

  7. #7
    Join Date
    Jul 2006
    Location
    UK
    Posts
    162
    Plugin Contributions
    0

    Default Re: Limited free samples

    Quote Originally Posted by Ajeh View Post
    The next thing would be the way to identify a Sample vs a Product ...

    How are these Sample Products identified from regular Products?

    If you have something to identify that something is a Sample, then it can be checked in the orders_products table to ensure that the customer can only get it once ...

    You can even go so far as to check customers on these Sample Products and if previously ordered the Add to Cart/Buy Now buttons are removed and show something like "One per Customer" ...
    Hi,

    I'm trying to set one of my products (a free physical sample to be shipped) so that a customer can only ever order one. So I have a unique product id. What next? How do I implement the checking it in the order_products table and returning a "one per Customer" message please?

    Which files do I need to edit etc to acheive this?

    Any suggestions would be very much appreciated.

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

    Default Re: Limited free samples

    I would edit the buy button function in the functions_general.php just above the line for:
    Code:
        $button_check = $db->Execute("select product_is_call, products_quantity from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
    And put in a test on the:
    (int)$product_id

    to see if that product is in the table:
    orders_products

    for the customers_id using:
    $_SESSION['customer_id']

    If it is, change the value in the CASES below that so that to add a new case and change the:
    $return_button

    so it is a message such as:
    $return_button = 'You only get 1!';
    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!

  9. #9
    Join Date
    Sep 2011
    Posts
    86
    Plugin Contributions
    0

    Default Re: Limited free samples

    Hello, I hope I am putting this post into the appropriate area.

    My store is using zen 1.3.9 with super orders.

    In my store I have many items and each item has eight options.

    I also have both regular shoppers and retailers. Whenever I get a new POTENTAL retailer we send them I free item with free shipping. I would like to be able to track this item in the inventory without having to manually reduce the stock, so that I know whom to I sent. So I think I should set them up as a retailer even if they have not yet signed the contract. Be then when I set a special coupon of 100% off and free shipping the only thing that gets applied is the free shipping. So I tried 50% off with free shipping and the same thing happens.

    Does anyone have a suggestion or a way that I might be able to send a free sample to these retailers and still track it in my inventory?

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

    Default Re: Limited free samples

    Discount Coupons are designed to work for 1 of 3 things:

    1 Amount Off

    2 Percentage Off

    3 Free Shipping

    The are not designed to work with a combination of 2 of the 3 choices ...

    The Discount Coupon code could be customized for this ... but the Free Shipping i for everything in the cart ...

    So, there would need to be further customization to manage the Shipping for when there are more Products than just the Product for Free Item and Free Shipping in the cart along with regular Products with Regular shipping ...

    While it can be done, it takes quite a but of customization to manage everything for this ...
    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!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Free samples in the Box Bestsellers
    By adelefr in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 1 Jun 2010, 07:24 PM
  2. Setting up free samples
    By madelharri in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 8 Mar 2009, 08:50 PM
  3. audio samples
    By accyjohn in forum General Questions
    Replies: 3
    Last Post: 18 May 2008, 07:07 AM
  4. Download Samples
    By Auskart in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Sep 2006, 07:21 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