BETA - Multi Purchase

Discussion in 'Modules / Plugins / Modifications' started by Eric Barnes, Oct 27, 2008.

  1. Eric Barnes Guest

    Here is a beta version of a multi purchase module. The module is setup very simple at this point in hopes of getting it working and latter adding more functionality. This module is released as a beta and should only be used for testing purposes. If you have any questions please reply to this thread.

    How it works

    This mod works by allowing customers to purchase a "discount". After purchase they get 100% off for x number of listings.

    Installation

    Download and Extract.
    Open the settings.php file and change the options:
    PHP:

    $multi_config
    ['priceper']     = '1.99';     // Price per listing
    $multi_config['min']         = '1';         // Min number of listings
    $multi_config['max']         = '10';     // Max number of listings
    $multi_config['expire']        = '30';     // Number days after purchase the discount expires


    Requirements

    v4.1.0 Beta and higher

    Download
    68 Classifieds Multi Purchase Module
  2. skyblue Customer

    Great mod! A few quick questions

    Hi Eric,

    This mod is just what we have been looking for!! Do you have an estimated completion date?

    A few quick questions:

    1. How will the setup of a discount package be handled... Through "Coupons & Discounts" in the admin?

    2. Will you be able to set the number of days the ads in the discount package can run?

    3. How will a customer be able to purchase the "discount" package?

    4. Will we be able to incorporate the mod into the Designer version?

    Thanks,
  3. Eric Barnes Guest

    Hi,

    Let me try and answer:

    1. Once a user purchases it will create a new discount in the admin coupons/discounts section. The discount will be assigned to that specific user.

    2. They will go off the package expiration. If your package is set for 30 days then their ads will run that long.

    3. It will be a link added to the navigation.

    4. Yes.

    - Do you have an estimated completion date?

    No it was posted here to get people to test it out and go from there. Right now it is real basic.
  4. skyblue Customer

    A little more to clarify

    Thanks for the quick reply Eric.

    In reference to #2, we currently have multiple length ad packages. Say for instance, we setup a 10 ad discount package (with the discount based on our 30 day ad price) what would prevent the user from selecting a longer ad package when posting?

    Another question (just to clarify) - Is it safe to assume that if the discount expiration was set for 30 days and the user posts an ad on day 29... a 30 day ad would run for 30 days from the date it was posted?

    Thanks again and hope you can complete this mod real soon. :)
  5. Eric Barnes Guest

    Hi,

    Keep in mind this is real basic and currently an all or nothing type system. Once they purchase the discount they get 100% off any packages you offer up to their limit.

    Expiration for the ads goes off your packages. The actual discount purchased goes off the setting. So if they purchase a 5 ad pack good for 10 days and place 1 listing today and 9 in 10 days then the later placed ads would run their full package expiration.
  6. skyblue Customer

    That's too bad about the multiple package lengths however we understand the need to keep it simple and will still be able to utilize.

    Looking forward to completion. As always, the support provided by 68C is OUTSTANDING!
  7. bowers01 Genius At Work

    Hi,
    Tell me if this is correct.
    The user buys a coupon for x amount of dollars, they can spend it on anything on the site(Featured, bold, highlighted and of course an ad)?
    What i want is how the coupons are now but them be automaticly issued, and taken though a checkout for them.
    Cheers,
    Nick
  8. Eric Barnes Guest

    Nick,

    Yes that is exactly right. They purchase a discount which is issued at 100% off for x amount of listings. Bold,highlighted,featured,etc would be free as well.

    Yes that is how it is designed.

    The module was released a few days ago before v4.1 beta 2 so I will try and get converted to work with the latest beta. In case you want to test it.
  9. bowers01 Genius At Work

    Hi,
    Excellent sounds great.
    Just one quick question will the templates be the same in v4.1? can i use the ones i am now because i have just finished getting them basicly how i want them and dont want to have to do them again.
    Cheers,
    Nick
  10. Eric Barnes Guest

    They have changed a little but just minor changes. Like changing the javascript in the head.
  11. fendter Customer

    Hi Eric, will the zipcode module still work with V4.10 beta?
  12. Eric Barnes Guest

    No. I have to get all the modules converted over to 4.1 So probably a few weeks away on that.
  13. kayfi New Member

    Eric,

    Can you provide some help ?
    I installed the module, but when i choose a quantity of ads, the ajax loads the total price. Then i have to choose the payment gateway, and then ajax seems to load something but nothing happens in the end.
    Moreover, the Multi coupon is created and avalaible without paying anything.
    How can i fix it ?
    You can test i there if you hame some times to spend for me....:confused:
    Kayfi.com - Les petites annonces gratuites du Sénégal !

    Many many thanks if can help me !
    Regards
  14. Eric Barnes Guest

  15. kayfi New Member

    Ok Eric,

    I updated with the latest relase, but il still the same.... after choosing the payment gateway, ajasx starts to load and nothing happens... i mean there is not button to confirm the purchase and redirect to the confirmation page, like thanks page or instructions page on how to complete payment, as i configured it for a normal purchase !

    Maybe it's normal but when i look into the fiile ajax.php of the last release, i see this portion of code:
    That means the button must be displayed, isn't it ?
  16. Lhotch curmudgeon

    Internet explorer and some virus/firewall apps really hate ajax.

    I recommend temporarily disabling your firewall if you have one and try using firefox if you arent already and see if it works and it it does you will know its not a code problem but a client side problem.
  17. kayfi New Member

    I fixed a part of the problem. There was some missing codes on a following line as displayd in red:

    So now, the VContinue button is displayed.
    But when i click on the button i'm automaticly redirected at the page:
    modules.php?mod=multi

    :confused::confused:
  18. kayfi New Member

    I tried to desactivate the firewall, and it didi'nt change anything in IE. Then I tried with Firefox and it worked normally.
    But what does that mean, do i have to prevent all my users to changer their browser ?
    Cause the problem is not due to the firewall but the ajax calling functions in IE...

    I found those articles regarding those troubleshootings:
    http://papermashup.com/ie-ajax-caching-issue/
    http://devcentral.f5.com/weblogs/macvittie/archive/2008/06/26/3397.aspx
    http://weblogs.asp.net/pleloup/archive/2006/06/08/451583.aspx
    http://www.spacebug.com/solving_browser_caching_problem_of_ajax.html
    http://webreflection.blogspot.com/2006/12/stupid-ajax-cache-problem-solution.html
    http://www.codemiles.com/post4732.html

    Maybe it will help you to fix it !
    Best regards to both of you ! And please try to solve this !
    Yves.
  19. kayfi New Member

    Hi again and so sorry to bother you once more with that problem,

    I read in one of the topics i sent you in my last reply that i have to add the following code in my php file to fix the ajax problem in IE:

    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header("Cache-Control: no-store, no-cache, must-revalidate");
    header("Cache-Control: post-check=0, pre-check=0", false);
    header("Pragma: no-cache");

    In wich php file do i have to add those lines ?
    Please help Larry and Eric !
    And so many thanks again !
  20. Lhotch curmudgeon

    I would assume they get added to ajax.php in the module folder.

Share This Page