imageknitting

Author Topic: Need a Plugin Please Help!!!  (Read 888 times)

webharambee

  • Beginner
  • *
  • Posts: 6
Need a Plugin Please Help!!!
« on: September 30, 2011, 21:46:37 PM »
Hello,

I am actually a web developer and have created my own Virtuemart modules before. However I have never created a plugin.


I have already written all of the code for my new plugin, however implementing it to make it do what I want my not be as easy.

The plugin I am creating basically removes the Add To Cart Button and replaces it with a textbox and a Submit button. Essentially the user will enter their zip code, if their zip code does not match the zip code of anyone else that has purchased this product then they will be able to Add the item to their cart, and If not it will display a message.

I already wrote all of the code that checks the zip code and runs through the database to see who else has purchased the item, loads the zip codes into an array and then compares them all to the entered zip code. It also displays an add to cart button which I can replace with the <?php $addtocart ?> or whatever once I get ready to deploy.

However, I want this to be an installable plugin and would like to find an existing plugin that basically allows something similar to be done so I can just replace the code with mine and have a template to start with!!!

If you know of any plugin that replaces the add to cart button until the user adds something, or even a plugin that will remove the add to cart button please let me know!!!

I already know of the Use Store Only as Catalogue feature and this could also work, but I need this to be a plugin, so something I can use on multiple sites. I am going to add my code to this plugin and I have 12 websites to install this plugin on and 1 of these sites will not be able to even use joomla if I cannot get it to work.

I have seen something similar for the Tienda Component, but hey, I am a VM GUY!!!!!

webharambee

  • Beginner
  • *
  • Posts: 6
Re: Need a Plugin Please Help!!!
« Reply #1 on: October 01, 2011, 00:28:46 AM »
In case I was not very clear, basically what the site promises is that no other school within a 100 mile radius will be playing the same music.

They sale the music on their website.

So, you would have to actually enter in your zip code, it would then check previous buyer's zip codes and if no one else's zip code was within a 100 mile radius of theirs then the add to cart button would appear.

However, if their zip code is less than 100 miles away then a message would display!

For an example of this please check out this link - > http://store.msconcepts.com/products/oz-mosis     Go ahead and enter a zip code to see what it does!

Use 90210 as the zip code to see the not available message
Use 76648 as the zip code to see the Add To Cart Button and options


Please help!!!

I am needing some information on this as soon as possible!!!

VirtueMart Forum

Re: Need a Plugin Please Help!!!
« Reply #1 on: October 01, 2011, 00:28:46 AM »