e-junkie custom script

by Rien
2 replies
Hi all,

This is the first time I have ever posted in this section so
please bear with me.

I am looking to create a countdown sales counter for
e-junkie. I cannot seem to find one and some of the
replies from their staff on this matter is to create a
custom script for it.

It would be something along the lines of a generic form-handler
type of script. It would be used to send data back and
forth from my site to e-junkie so I could display a sales
counter.

Something close to the ones used in WSOs where the counter
says "X remaining."

Anyone know of this type of script or can walk me through
creating it?

Thanks,

Rien
#custom #ejunkie #script
  • Profile picture of the author Atef
    Originally Posted by Rien View Post

    Hi all,

    This is the first time I have ever posted in this section so
    please bear with me.

    I am looking to create a countdown sales counter for
    e-junkie. I cannot seem to find one and some of the
    replies from their staff on this matter is to create a
    custom script for it.

    It would be something along the lines of a generic form-handler
    type of script. It would be used to send data back and
    forth from my site to e-junkie so I could display a sales
    counter.

    Something close to the ones used in WSOs where the counter
    says "X remaining."

    Anyone know of this type of script or can walk me through
    creating it?

    Thanks,

    Rien
    as they don't provide a sold out feature then you should do that using a custom script

    this script will read a saved number (inventory level ) and before showing the buy now link it makes that the inventory has data

    making things simple ,

    you should replace the buy now button code on your site with and iframe that is calling to a pipeline that will allow to show the buy now code or either the sold out message

    fast code

    you will place this iframe instead of buy now button

    <iframe src="http://example.com/pipeline.php"></iframe>

    then on the pipeline.php file you will write the code


    <?php
    $invent_level=file_get_contents('inventory.txt');

    if ($invent_level > 0){
    ?>

    //here you paste html buy now button


    <?php
    }else {
    ?>

    //here you paste your sold out html message

    <?php
    }
    ?>


    on the other side once a successfull sale is made you need to call the inventory decrementing script

    call it like decrementer.php

    <?php

    $level=file_get_contents('inventory.txt');

    //decrement
    $level=$level - 1 ;

    //updating
    file_put_contents('inventory.txt',$level)

    ?>

    so call the previous file on iframe also inserted on the thank you page for the sales

    hope that helps
    {{ DiscussionBoard.errors[4814855].message }}
    • Profile picture of the author bluemoon72
      Would this script work with WordPress? If so, is there anyone who could install this script on a WordPress page for me?

      Thanks,

      Jennifer Wenzel
      St. Paul, MN
      {{ DiscussionBoard.errors[6323227].message }}

Trending Topics