assembler
-
Posts
50 -
Joined
-
Last visited
Posts posted by assembler
-
-
Thank you very much for the help!
I am still having a small issue however. It seems that it does indeed not let someone checkout when they have not filled out the PO number, however it seems that the error message never pops up anywhere, it just reloads the page. I am not sure how the error message was intended to show, but I suggest making it a javascript alert to match the rest of the character length check errors in oscommerce.
It should bring you back to the page where you select your payment method (checkout_payment.php) - and the message shows at the top of the page like all the other payment modules.
-
This is now posted in the contributions.
-
I currently have this mod running on an internal warehouse shopping website for a company.
http://addons.oscommerce.com/info/5710
I installed this mod since we use PO's to pay for everything. A PO is the only payment option I have available, but due to the way this mod is written there is no way to set that a PO number is required! We are having visitors make orders and leaving the PO number box blank on accident.
How can I make it stop a visitor from checking out without something filled in the PO box? :huh:
Thanks.
Find this in catalog/includes/modules/payment/po.php
function before_process() { global $HTTP_POST_VARS, $order;
Add this directly after
$error = ''; if (strlen($_POST['po_owner']) < 1) { $error = 'Please enter a valid Company Name'; } elseif(strlen($_POST['po_number']) < 1){ $error = 'Please enter a valid Purchase Order Number'; } if ($error != '') { $payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($error); tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false)); }
I'll set it up with language file support and upload it to the contributions in the morning. I'll also add the cronjob that reminds people to send a hardcopy.
-
I'll check it out. Are you having any trouble with the results posting into the database? Some other users are reporting trouble.
-
Does anyone know how I would get just the first name of the reviewer to appear insted of first and last name?
The names are stored in the table reviews, in one column called customers_name. You would have to explode this field to get the first name. You could do something like:
$name_array = explode(" ",$reviews['customers_name']); $firstname = $name_array[0];
-
sounds a lot like Master Products to me. :)
Thanks for the heads up. Would you suggest Master Products over Artikelgroesse?
-
I'm looking for a contribution that will let me define products in my store as sub products, which can then be added to a main product.
I would like the main product info page to display the sub products, with the option of adding each of the sub products to the shopping cart. I would not like the sub products to be displayed in the product listings.
I am doing this because I need the products_model to be different on each of these sku's because of my order export module, but I want them to display on one product info page.
Does anyone know if a project like this exists? Would anyone be interested in assisting me?
I'm thinking the best way to do this would be to create a table called products_to_products...
/*Table structure for table `products_to_products` */ DROP TABLE IF EXISTS `products_to_products`; CREATE TABLE `products_to_products` ( `parent_products_id` int(11) NOT NULL, `child_products_id` int(11) NOT NULL, PRIMARY KEY (`parent_products_id`,`child_products_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
And then change all of the product queries to something like:
select p.products_id, pd.products_name, ptc.categories_id, ptp.parent_products_id FROM products p, products_description pd, products_to_categories ptc, products_to_products ptp WHERE p.products_id = pd.products_id AND pd.language_id = '1' AND p.products_id = ptc.products_id AND p.products_id != ptp.child_products_id;
It would then be pretty easy to pull up the sub products on the product info page, and display them with buy now links. I don't really know how the admin interface would work, but something using Ajax to add unlimited sub products would be great.
Can anyone suggest something different? Would this be the best approach in terms of performance?
-
Anybody know what is necessary to get the reviews count appearing on the index page with the code inserted into the modules/products_reviews_info.php file?
Reason for this is because I'd like to integrate it in between the 'Read All Reviews' and the 'Write a review' links.
The stock code to display the number of reviews a product has is in product_info.php is:
<?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { ?> <tr> <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php }
You could also change the contribution to find this information with the main review query. However, you would also have to change the way that the reviews box gets created.
-
Hi, I just installed and I use sts so it did not show at first, but I put the code in includes/sts_product_info.php and then it showed.
But I have one problem. The link is showing over my header instead of on the page. Here is a link to my site:
http://www.kjolebutikken.com/oscdemo1/prod...?products_id=30
How do I move it to the page?
Thanks:-)
Kjolebutikken
I'm sorry, but I am not familar with any of the template contributions.
-
VERY nice contribution, thanks!
TJ,
You may want to change the egrep line of the contribution, if a lot of your product names contain dashes. This line of code makes the word lowercase, and removes anything that is not a letter or number. You may wany to include - as well, so it is not removed. By doing this, you will avoid linking to blank search results pages (like your example page does).
-
I've installed it and like it.
Basically - it takes the significant words from the product name and displays them below the products as hyperlinks to a search individually
This is a simple way of allowing the customer to use one of the words of the product name to search for similar products.
Tom
It should also help to send search engines to search result pages (which they normally can't get to). They should see each search results page as a different page, immediately multiplying the number of search engine indexed pages by a large amount.
-
I've noticed a lot of stores lately with a "Try Searching For" link on the product info pages, followed by the product name broken down into search strings. This should multiple the number of pages your store has by a fairly large amount.
Easy to install, it should only take a few minutes.
-
I am a little confused on the naming convention in banner management.
Do I name the banner title "indexad1" and the group name "position 1"
You need to name the banner group "indexad1", "indexad2", etc. The title can be anything you want, and it would make sense to use a title that relates to the link being used for search engine reasons.
-
I am having a problem with the newest version of the contribution. Basically, no links would work when activated. It appears The problem is that the PHP code (specificly in the catalog/includes/classes/seo.class.php module) tries to do a redirect from a non-secure URL to a secure URL. However, for some reason (unknown at this time) it is redirecting to a non-secure URL, which then tries to redirect again and gets another non-secure URL, around and around till maximum redirection levels are reached.
The solution for now was to turn off automatic redirects in the configuration. Perhaps someone can troubleshoot the script to allow for these automatic redirects?
-
nobody? :'(
To change the default Yes/No on the update status, open includes/print_multi.php
Change this:
echo " Yes " . tep_draw_radio_field('autoupdatestatus', 'Yes', true); echo " No " . tep_draw_radio_field('autoupdatestatus', 'No');
to:
echo " Yes " . tep_draw_radio_field('autoupdatestatus', 'Yes'); echo " No " . tep_draw_radio_field('autoupdatestatus', 'No',True);
It is possible to send the update email when you update the status.
You would need to include the regular update mail fuction it admin/print_multi.php, after:
if($autoupdatestatus=='Yes') {
If you want to print based on a range of numbers, this isn't the contribution for you. It was coded with the current functionality in mind.
-
Assembler thanks for this contribution.
I have a problem. I need to able to use '/' in the search box. As soon as I type / and a letter (or number) after /, it clears the results. This site is uses tire sizes so it is crucial to have / .
any idea to fix this,
here is the link to the search page:
Thank you,
OnuR
Open quickfind.php. The line that is taking out the slash is line:
$q = addslashes(preg_replace("%[^0-9a-zA-Z ]%","",$_GET["keywords"]));
Change this line to allow for the '/'.
-
Works great now. Thanks for much!
Glad to hear!
-
Locally, on Win XP/Firefox and IE, the contribution works just fine. Remotely, on my Linux server, it doesn't. Could this be an OS-related problem?
It looks like most browsers don't like the full URL that tep_href_link was producing. I uploaded a new package that fixes the problems. I have tested the new package on a remote LINUX server and it worked successfully. I have changed most of the Javascript to work with more browsers.
Instead of using the output of tep_href_link, I am now creating the link with
var url="quickfind.php?osCsid=<?php echo tep_session_id();?>&keywords="+key;
This is not the only change, so please download the new package.
-
I'm working on a solution. This works with no problems on my Windows machine running the lastest version of XAMPP. Check back soon.
-
Hi,
I've just instaled this contribution. Unfortunately, it doesn't work for me. When I start typing, nothing appears.
Any guesses? :blush:
Thanks,
Irina.
What browser are you using? Try it with IE.
-
This is the support thread for the AJAX Quick Search Contribution.
http://www.oscommerce.com/community/contributions,3413
This contribution adds an AJAX Quick Search to your advanced search page. It could easily be adapted to any search box and any query in osCommerce.
This works basically the same way as Google Suggest. As you type, it guesses what you are typing and displays the product names below the search box. This works in real time, with no need to reload the page.
-
This contribution adds reviews to the product info page. You can manually set the number of reviews per page. A screen shot is included in the package.
-
Go to Admin->Modules->Order Total under Points Redemptions make sure its install and the sort order is less then TOTAL and higher then SUB-TOTAL.
On a fresh install of oscommerce the sort order for Points Redemptions and TOTAL
are the same = 4 you must change the sort order for TOTAL to higher then 4.
This fixed the problem that I was experiencing.
-
My Order Confirmation page does not indicate that any reward points are being used. I installed this contribution on a clean osCommerce 2.2-MS2. Should anything be displayed, or is the discount taken in the background?
Thanks
Purchase Order (PO) Payment Module Question
in Other
Posted
It may be because of STS - I am unfamiliar with that contribution. Do payment errors work on any payment modules for you? If so, you should see how they are displayed with the the module.
This module uses the stock oscommerce way of displaying the error with this code:
It redirects the user to the page where you select the payment options, and displays the error text at the top of the page.