

ecartz

-
Content count
3,754 -
Joined
-
Last visited
-
Days Won
63
Everything posted by ecartz
-
Zone rate would do this in a standard install. For orders with high weight items, the high weight item will tend to dominate the shipping calculation. You might need to modify it to get the correct number of zones. You also may want to consider integrating your actual shipper. For example, UPS and FedEx have APIs where you can get an actual quote for shipping. If your shipper offers this, it would be better than trying to estimate what the shipper would charge.
-
Searching for "price logged in" finds Prices for Logged-In Users Only among other results.
-
Out of range value adjusted for column 'delivery_id' at row 1
ecartz replied to jduehmig's topic in General Add-Ons Support
Perhaps order ID? You might need to check the FedEx documentation to find out what they expect this field to have in it. -
admin insert account with United States as default
ecartz replied to amystephenson's topic in General Add-Ons Support
I'm not sure what contribution you're using to add customers from admin, but to do this in create_account.php, you would find <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> </tr> and change to <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <td class="main"><?php echo tep_get_country_list('country', '223') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> </tr> where 223 is the country ID for the US, if I recall correctly. You should be able to do something similar in your admin file. -
Image Zoom with xml generator and Flash player
ecartz replied to Frogger34's topic in Templates and Images
Do thumbs work? The equivalent of your thumb code would be $xmlfile.="<large>\n"; $xmlfile.=tep_image(DIR_WS_IMAGES . $products['products_image']); $xmlfile.="</large>\n"; If that doesn't work, can you make the XML manually and give an example of how you want it to come out? -
Super Download Shop
-
Sorry, I wasn't involved with the install when this was being tested, so I never tried to follow these instructions. It's not clear to me if this is necessary or not. If it is necessary, I think that the code should be (instead of what's shown): <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL', false), 'post', 'onsubmit="return check_form();"'); echo tep_hide_session_id(); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> Note that the echo statement moved.
-
Check out the Option Types v2 contribution. It does not work exactly as you describe, but it has the same purpose.
-
"Call for Shiiping" option for specific states
ecartz replied to godleuf's topic in Shipping Modules
Searching the contributions area for "individual shipping" finds Individual Product Shipping Prices among others. -
problem with Multiple Product Images With Slide Show contribution
ecartz replied to mikek12003's topic in Templates and Images
Actually, the problem is that he has a template installed (all the tep_draw functions give it away). The proper section would be <table cellpadding="0" cellspacing="0" border="0" align="left" class="prod_info" style="border-right:13px solid #ffffff;border-left:0px solid #ffffff;"> <tr><td class="pic" align="center"> <br style="line-height:1px;"><br style="line-height:9px;"> <?php /* echo tep_draw_prod_top(); */?> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ' style="margin:0px 0px 0px 0px;"') . ''; ?>'); //--></script> <noscript> That might have the code that needs replaced (the javascript). Definitely back up before trying. George's hint about looking at a stock product_info is good. At the very least, you could find out what code you would normally replace. -
Did you do The error message suggests that you are missing that function. Note: that is from the 2.1 version of the contribution. If you are using a different version, the function might be different. You might get more help in the support thread for the contribution.
-
Given the way that the BTS works, it is not really something you can install after installing other contributions. Specific instructions won't work, because they will be heavily dependent on what you have done already. Notionally, what you would do is to create a new store, install the BTS there and then port your contributions and data to the new store. Then replace the existing store with the new store. I find the BTS convenient for the specific problem of creating a brand new store with a non-standard template. Or creating a demo store with multiple templates. If you just want to modify the template of a running store, you might find the Simple Template System (STS) easier to install. Or just modify the templates of each file manually -- that's probably easier than installing the BTS in that case. Sorry I can't be of more help.
-
NOT ABLE TO CHANGE YOUR SHIPPING TABLE WITH VERSION 1.27 OF TABLE.PHP? HAVE YOU LOOKED IN SOURCE CONTROL FOR A REPLACEMENT? TRY http://svn.oscommerce.com/fisheye/browse/o...table.php?r=477 (blue arrow next to the revision 477 is a download link). Is that what you wanted?
-
You would normally get that information from your vendor and use something like Easy Populate to upload it. Incidentally, the Contribution General Support forum is for contributions that don't fit the other categories.
-
For each file you want to change, add a line like RewriteRule ^index.html$ index.php to the .htaccess file and see if that does what you want.
-
Easy Populate $DOCUMENT_ROOT won't work
ecartz replied to devinelight's topic in General Add-Ons Support
You might get a faster response if you post in the Easy Populate support thread. There are people who watch that thread who might not see your post here. -
What's on line 111 of usps.php? Preferably with some context (say lines 100-115).
-
Try admin >> Locations/Taxes >> Tax Zones. Even if you don't want to do anything with taxes, that's still the right place to add a zone show it appears in the table rate shipping drop down.
-
Curl still works. It's more likely that UPS or FedEx have changed their configuration. Have you checked out the UPS XML Rates and Services module? It has a recent fix for a change in the UPS handling of requests. Similarly, there is a Fedex Rate service WSDL module that is fairly recent. There may be other contributions that are better. Those are just two that I found with recent releases. 3.0 will be even worse off than 2.2 here. It's unlikely that anyone has updated shipping modules to work on 3.0. We're well short of it being time to upgrade to 3.0 to fix things. Perhaps when a Beta is released?
-
[Contribution] - Search Box Anywhere
ecartz replied to Bigredman74's topic in General Add-Ons Support
You have products_description pd in the query twice. Remove the second one and the two after it: ", products_description pd, categories c, products_to_categories p2c". If you can't figure it out from the code, you'll need to post the parts that refer to any of those three tables. -
Parse error: parse error, unexpected T_CASE...
ecartz replied to cmxsevenfoldxmc's topic in General Add-Ons Support
It's this section: p.products_hide_from_groups from, p.products_qty_blocks should be p.products_hide_from_groups, p.products_qty_blocks without the extraneous from. -
Searching for PDF finds PDF File Upload and Display among other options.
-
Assuming that the MSRP contribution has you adding a column named products_msrp to the products table (substitute appropriately if not), try the following set of instructions: Run the following SQL: INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Product MSRP', 'PRODUCT_LIST_MSRP', '3', 'Do you want to display the MSRP', '8', '5', now()); In index.php (around lines 129-136), find $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW); and change to $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_MSRP' => PRODUCT_LIST_MSRP, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW); then find for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { switch ($column_list[$i]) { case 'PRODUCT_LIST_MODEL': $select_column_list .= 'p.products_model, '; break; case 'PRODUCT_LIST_NAME': $select_column_list .= 'pd.products_name, '; break; case 'PRODUCT_LIST_MANUFACTURER': $select_column_list .= 'm.manufacturers_name, '; break; case 'PRODUCT_LIST_QUANTITY': $select_column_list .= 'p.products_quantity, '; break; case 'PRODUCT_LIST_IMAGE': $select_column_list .= 'p.products_image, '; break; case 'PRODUCT_LIST_WEIGHT': $select_column_list .= 'p.products_weight, '; break; } } and change to for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { switch ($column_list[$i]) { case 'PRODUCT_LIST_MODEL': $select_column_list .= 'p.products_model, '; break; case 'PRODUCT_LIST_NAME': $select_column_list .= 'pd.products_name, '; break; case 'PRODUCT_LIST_MANUFACTURER': $select_column_list .= 'm.manufacturers_name, '; break; case 'PRODUCT_LIST_MSRP': $select_column_list .= 'p.products_msrp, '; break; case 'PRODUCT_LIST_QUANTITY': $select_column_list .= 'p.products_quantity, '; break; case 'PRODUCT_LIST_IMAGE': $select_column_list .= 'p.products_image, '; break; case 'PRODUCT_LIST_WEIGHT': $select_column_list .= 'p.products_weight, '; break; } } Next find switch ($column_list[$sort_col-1]) { case 'PRODUCT_LIST_MODEL': $listing_sql .= " order by p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_NAME': $listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : ''); break; case 'PRODUCT_LIST_MANUFACTURER': $listing_sql .= " order by m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_QUANTITY': $listing_sql .= " order by p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_IMAGE': $listing_sql .= " order by pd.products_name"; break; case 'PRODUCT_LIST_WEIGHT': $listing_sql .= " order by p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_PRICE': $listing_sql .= " order by final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; } and change to switch ($column_list[$sort_col-1]) { case 'PRODUCT_LIST_MODEL': $listing_sql .= " order by p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_NAME': $listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : ''); break; case 'PRODUCT_LIST_MANUFACTURER': $listing_sql .= " order by m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_QUANTITY': $listing_sql .= " order by p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_IMAGE': $listing_sql .= " order by pd.products_name"; break; case 'PRODUCT_LIST_WEIGHT': $listing_sql .= " order by p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_MSRP': $listing_sql .= " order by p.products_msrp " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_PRICE': $listing_sql .= " order by final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; } Now, in includes/modules/product_listing.php (around lines 29-62), find switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_text = TABLE_HEADING_MODEL; $lc_align = ''; break; case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'PRODUCT_LIST_MANUFACTURER': $lc_text = TABLE_HEADING_MANUFACTURER; $lc_align = ''; break; case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; case 'PRODUCT_LIST_QUANTITY': $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'right'; break; case 'PRODUCT_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; case 'PRODUCT_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; } and change to switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_text = TABLE_HEADING_MODEL; $lc_align = ''; break; case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'PRODUCT_LIST_MANUFACTURER': $lc_text = TABLE_HEADING_MANUFACTURER; $lc_align = ''; break; case 'PRODUCT_LIST_MSRP': $lc_text = TABLE_HEADING_MSRP; $lc_align = 'right'; break; case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; case 'PRODUCT_LIST_QUANTITY': $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'right'; break; case 'PRODUCT_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; case 'PRODUCT_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; } Next find case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } break; and change to case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; case 'PRODUCT_LIST_MSRP': $lc_align = 'right'; $lc_text = ' ' . $currencies->display_price($listing['products_msrp'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; break; case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } break; Finally, in includes/languages/english/index.php (or whatever language) find (around lines 24-25) define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); and change to define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_MSRP', 'MSRP'); define('TABLE_HEADING_PRICE', 'Price'); You can also change Price to Buy New here, if that's what your boss wants.
-
Without any knowledge of this contribution, I would say that you should add define('FILENAME_FEATURED', 'featured.php'); to includes/filenames.php -- you can probably confirm this in the install instructions.
-
Different Quantity Price Breaks and customisation.
ecartz replied to akumi's topic in Order Total Modules
Product Attributes are part of the stock install. You have four drop downs. Make each an option. Make the price dependent on which of the five quantities is chosen. Do not have different prices for the other three options. You won't get the product code, but you will get most of the rest of your first choice.