Can you please give me the exact link to an out-of-stock item on your site?
Can you please give me the exact link to an out-of-stock item on your 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
Great Mod!
I had the same problems as the previous poster but made it work. I think I am having a problem reading the "define" if that makes sense. I don't know the proper terminology. Reason i say this is that the image is not loaded and the alt tex is not either.
Here is a link to one in my site http://www.diytacticalstore.com/cata...roducts_id=196
I do have suggestions a suggestion is it possible to make the "Quantity" box a numeric only field?
A few people have already entered things such as "2-3" or "approximately 5" this prevents the request from being recorded in the back end.
Also if they leave it blank it does not list in the admin. Even thought there is a "*" labeled as a required field there is no error when someone leaves it blank.
Thank you for your work on this.
Using: Zencart 1.3.7 and lovin' every minute of it.
Tell me, so u got the newest file (see my previous post for the attachment) and it still does not work?
And I'll check why it doesnt check the number thing, huhm!
Will have an updated version within 2 days.
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
Yes I downloaded the file attached to post #9 in this thread. I will double check however just to be sure.
Thank you for looking into the number value. I would say about 80% of our requests are coming in with more than just a single number.
Using: Zencart 1.3.7 and lovin' every minute of it.
Using: Zencart 1.3.7 and lovin' every minute of it.
First error:
I made a mistake in the installation guide, there is no file with the name tpl_product_info_display.com, the file you should edit is tpl_product_info_display.php
Double check that file in your custom template folder:
The text/image displayed in your product_info page is the result of this code:PHP Code:includes/templates/your_current_template/templates/tpl_product_info_display.php
Double check it.PHP Code:<!--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 -->
And all those image and text are defined in:
PHP Code:includes/languages/english/your_current_template/request_restock.php
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
I see that you are currently using "template_default"?
If so, have you changed all the folders named TEST in the package to template_default before uploading them to your 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
Actually to be honest I didn't even realize you had made a mistake in the installation guide. here is the code as I modified it to show what is currently showing in the link i posted:
Placing the code as you have listed the no image did not show and this BUTTON_REQUEST_RESTOCK_ALTBUTTON_REQUEST_RESTOCK_ALT or something similar shoed up as the link,Code:<!--bof Restock button--> <?php if ($products_quantity <= 0) { ?> <div><?php echo '<a href="' . zen_href_link(FILENAME_REQUEST_RESTOCK, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_REQUEST_RESTOCK, Request_Restock_Notice) . '</a>'; ?></div> <?php } ?> <!--eof Restock button -->
I had to edit BUTTON_REQUEST_RESTOCK_ALT to Request_Restock_Notice and remove the BUTTON_REQUEST_RESTOCK_ALT this is outside the (BUTTON_IMAGE_REQUEST_RESTOCK, BUTTON_REQUEST_RESTOCK_ALT)
It is my understanding if there was a problem with the image then the ALT text should have shown? But it appears for me it was pulling the text that did show from the code i entered into the tpl_product_info_display.php file
I have very limited knowledge of code i just figured this out after a few hours of tinkering.
These two lines:
are listed in request_restock.phpCode:define('BUTTON_IMAGE_REQUEST_RESTOCK','button_request_restock.gif'); define('BUTTON_REQUEST_RESTOCK_ALT', 'Request Restock');
i hope this explains what is going on a little bit better. Wish i could be of more help
Using: Zencart 1.3.7 and lovin' every minute of it.
Using: Zencart 1.3.7 and lovin' every minute of it.
You see, when I go to your site and check your html code, here is what I found out:
It's saying that, the current template you are using is "template_default"PHP Code:includes/templates/template_default/buttons/english/BUTTON_IMAGE_REQUEST_RESTOCK
The button image and alt text are not loaded because 1 reason: they are defined in request_restock.php, and that file should be in
which, in your case here, would be:Code:includes/languages/english/your_current_template/request_restock.php
Make sure you have it in the right place. If it still does not work, I'm here to help!Code:includes/languages/english/template_default/request_restock.php
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