New Zenner
- Join Date:
- Mar 2006
- Posts:
- 83
- Plugin Contributions:
- 0
Request Restock Mod Thread
Ok i will do some checking. Is it possible the template overides are not working properly?
Using: Zencart 1.3.7 and lovin' every minute of it.
Views: 23,631
New Zenner
Ok i will do some checking. Is it possible the template overides are not working properly?
Using: Zencart 1.3.7 and lovin' every minute of it.
New Zenner
OK i checked,
request_restock.php is in /catalog/includes/languages/english/diytac/
I do not have a folder called template_default in /catalog/includes/languages/english/ as i don't believe i should.
I also checked in admin and my template is correctly pointing to "diytac"
What woud be the cause for it not to be read in the /diytac folder?
Using: Zencart 1.3.7 and lovin' every minute of it.
Totally Zenned
Ok, here is the solution which has just been tested: edit
/includes/languages/english/diytac/button_names.php
Add
define('BUTTON_IMAGE_REQUEST_RESTOCK','button_request_restock.gif');
define('BUTTON_REQUEST_RESTOCK_ALT', 'Request Restock');
Done! That was again my stupid mistake. Should work fine now!
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
New Zenner
yellow1912:
Ok, here is the solution which has just been tested: edit
/includes/languages/english/diytac/button_names.php
>
> Add
>
> ```php
define('BUTTON_IMAGE_REQUEST_RESTOCK','button_request_restock.gif');
define('BUTTON_REQUEST_RESTOCK_ALT', 'Request Restock');
Done! That was again my stupid mistake. Should work fine now!
That did the trick! I didn't want the image in for application so i modified accordingly but it is definitely reading button_names.php
Thanks for taking the time to help.
Using: Zencart 1.3.7 and lovin' every minute of it.
Totally Zenned
Your are very welcomed! I'll post the fix for the number checking soon.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Totally Zenned
Alpha 3.2 changes:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=660
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
New Zenner
Perfect, got it installed and it's appears to be working great.
Using: Zencart 1.3.7 and lovin' every minute of it.
Totally Zenned
landshark:
Perfect, got it installed and it's appears to be working great.
I'll release alpha3.3 soon, which will allow you to better customize email template sent to the customers (which is very very important, imo).
I have it working great on my site already, just need to remove some hard-coded links so it can work on any site.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Totally Zenned
Alpha3.3 uploaded.
You MUST update to this version to fix a critical error!!!
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Totally Zenned
Latest (stable version)
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=660
Latest (unstable version)
https://svn.rubikintegration.com/zencart_mods/request_restock/
Bug report:
http://www.rubikintegration.com/mantis/
Thank you
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Totally Zenned
HI!
Great mod!
I found a small bug, you give a closing </div> in your button code in the readme.txt, but no opening div.
<!--bof Restock button--> <?php if ($products_quantity <= 0) { ?><?php echo '<a href="' . zen_href_link(FILENAME_REQUEST_RESTOCK, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_REQUEST_RESTOCK, BUTTON_REQUEST_RESTOCK_ALT) . BUTTON_REQUEST_RESTOCK_ALT . '</a>'; ?></div>
<?php
}
?>
<!--eof Restock button -->
Totally Zenned
Thank you, and will update it soon ^^.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
New Zenner
Does anyone know where to place the code so that the request restock button/link will show up next to the "out of stock" icon in the list view.
I've got it in my product description but would also like someone to be able to request the restock when they are just browsing through the list. Often times people won't click on the item if it is showing up as out of stock and therefor they don't know that they can request a notification when it's back on the shelf so to speak.
Hope this makes sense.
Using: Zencart 1.3.7 and lovin' every minute of it.
Totally Zenned
You would have to edit many files just to do it, there are special listing, new listing, all products listing, ....
I don't remember the exact files names, but if you are familiar with editing ZC files then it's easy to do:
Say I want to edit the listing for my index site, I will view the source file of the file. I want to put the request button right under the price, so I look at the source code of "price":
<div class="price">$6.49</div>
Now I can use a program that can search the content of many files (notepad++ for example) and search for
div class="price"
If that does not work then I may want to search for only
price
ZC sometimes build the html in the module files, sometimes in the template files, so it can get really confusing at first but you will get used to it. And I sure hope we will see code improvement on the later versions.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Zen Follower
I have installed this add-on and seems to work great
but I did a test to be notified of a restock and all I got was
Dear carlos
Product XYZ
This email address was given to us by you or by one of our customers. If you
feel that you have received this email in error, please send an email to
[email protected]
Copyright (c) 2007 Zen Cart. Powered by Zen Cart
That was it, nothing else .. what am I doign wrong ? seems it's not using the email template ?
Totally Zenned
Can you please take a screenshot of the mail and post it here please?
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Zen Follower
Totally Zenned
Huhm, are you using the newest version? We no longer use that email template.
Try downloading the newest version, install it and let me know if this still happens.
NullMind:
sure, here it is .. let me know if you need anything else
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Zen Follower
I am using Alpha 3.3 ? .. is there a newer one ?
Totally Zenned
No, it's the newest
Are you sure that you uploaded all the files in the folder "email" to your corresponding folder on the server?
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Tell staff why this post should be reviewed.