Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

Profile Information

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Jim, I have the Use Zones Configuration set to true, but the pop up window only has entries for zip code and country code. -Varina
  2. Jim, I have been successfully using this shipping estimator program for a while now, but now I have a problem. We have just received negotiated rates from UPS, and I have fixed my UPS XML module to recognize this change. When a customer is logged in, the shipping estimator works fine. The problem I have is that if someone is not logged in and wants to check the shipping cost I get the following error: United Parcel Service 110206: Missing/Illegal ShipTo/Address/StateProvinceCode Is there a way I can add the state code to the shipping estimator file so it doesn't throw this error? It has been a while since I have modified this code, so a little push in the right direction would be helpful. Thank you, Varina
  3. The image size is based on your Small Image Width and Height from the admin side, just like your product listing. You could change it by defining a new image size for the shopping cart. You would have to add it to the configuration section of your sql database. The OTF Thumbnailer has instructions on how to create a new image size definition and add it to your database. It is in the bonus section of the installation instructions. If you fix the spacing issues (like I described in the previous post) the checkout page looks much better.
  4. You have the right idea, you are just changing the wrong part of the code. Find this: <div class="left wid200"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . '</strong>' . $stockCheck . $productAttributes . '</a></div> and add this: <div class="left wid200" style="padding-left: 10px;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . '</strong>' . $stockCheck . $productAttributes . '</a></div> It has a padding of 10px. 20 is too much and will mess up the rest of the columns. You also want to add the same to: <div class="left wid200"><b><?php echo TABLE_HEADING_PRODUCTS;?></b></div> Like this: <div class="left wid200" style="padding-left: 10px;"><b><?php echo TABLE_HEADING_PRODUCTS;?></b></div> So that the heading and the info line up. I also added a space between the product images too. To do that create a new class under the <style> at the bottom like : .padtop5 {padding-top: 5px} Then add it to the first div class for the shopping cart portion: Here is my code as a reference: echo '<div class="contentText padtop5"> <div class="left" style="width:' . SMALL_IMAGE_WIDTH . 'px;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div> <div class="left wid200" style="padding-left: 10px;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . '</strong>' . $stockCheck . $productAttributes . '</a></div> <div class="left wid75 t-center">' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id'])) . '</div> <div class="left wid75 t-center">' . tep_draw_input_field('qty[' . $products[$i]['id'] . ']', $products[$i]['quantity'], 'size="2" data-pID="' . $products[$i]['id'] . '"') . '</div> <div class="left wid75 t-center">' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</div> <div class="left wid25 t-right iconred mrt5 pointer" id="cartDelete" data-pID="' . $products[$i]['id'] . '">✘</div> <div class="clear"></div> </div>'; Hopefully all of that made sense to you.. :)
  5. Thank you, thank you, thank you. :) It worked except when I was logged in, then I got this error: 1054 - Unknown column 'customers_default_shipping_address_id' in 'field list' select customers_default_shipping_address_id from customers where customers_id = '2' [TEP STOP] I replaced customers_default_shipping_address_id with customers_default_address_id and now everything seems to work. Thank you so much. Everything matches now. :)
  6. Yep, I could, if I knew how... Maybe I should just give up and stick with the old buttons...blue and grey isn't that bad right?
  7. Thanks for the link Jim. I am muddling through it. But since it is a pop up window I don't really need the heading info, (logo, cart buttons...) Can I put the jquery info in without calling for template_top.php?
  8. Jim, Sorry to keep bugging you, but I am getting frustrated on the button changes is the ship_estimator file. I found your thread on how to convert the 2.2 buttons to 2.3.1. and I thought I could figure it out, but every time I try to change the buttons in this file I lose the functionality, and get standard windows buttons instead of my theme buttons. I am not sure what I am doing wrong. The three I would like to change are: Close: <!-- close_window //--> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td> <p class="smallText" align="center"> <?php echo '<a href="' . tep_href_link (FILENAME_SHIP_ESTIMATOR, 'action=end', 'NONSSL') . '">' . tep_image_button('button_close_window.gif', IMAGE_BUTTON_CLOSE) . '</a>'; ?> </p> </td> </tr> <!-- close_window_eof //--> Reset (New Address): <!-- reset //--> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" width="100%" align="center"><?php echo TEXT_RESET_EXPLAIN; ?> </td> </tr> <tr> <td><?php echo tep_draw_separator ('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main" width="100%" align="center"><?php echo '<a href="' . tep_href_link (FILENAME_SHIP_ESTIMATOR, 'action=reset', 'SSL') . '">' . tep_image_button('button_reset.gif', IMAGE_BUTTON_RESET_FORM) . '</a>'; ?> </td> </tr> </table></td> </tr> </table></td> </tr> <!-- reset_eof //--> And the Process Quote Button: <!-- ship-to_form //--> <tr> <td> <?php echo tep_draw_form ('est_shipping_id', tep_href_link (FILENAME_SHIP_ESTIMATOR, 'action=process', 'SSL'), 'post')// . tep_draw_hidden_field('action', 'process'); ?> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td colspan=2 class="main"><b><?php echo TITLE_SHIPPING_ADDRESS; ?></b></td> </tr> <tr> <td class="infoBoxContents"><?php echo ENTRY_POST_CODE; ?></td> <td class="infoBoxContents"><?php echo tep_draw_input_field ('shippostcode') . ' ' . (tep_not_null(ENTRY_POST_CODE) ? '<span class="inputRequirement">* Required</span>': ''); ?></td> </tr> <tr> <td class="infoBoxContents"><?php echo ENTRY_COUNTRY; ?></td> <td class="infoBoxContents"><?php echo tep_get_country_list ('shipcountry',DEFAULT_COUNTRY) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">* Required</span>': ''); ?></td> </tr> <td class="infoBoxContents"></td> <td class="infoBoxContents"><?php echo tep_image_submit ('button_process_quote.gif', IMAGE_BUTTON_PROCESS_QUOTE); ?></td> </tr> </table></td> </tr> <tr> <td width="10"><?php echo tep_draw_separator ('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></form></td> </tr> <!-- ship-to_form_eof //--> Can these buttons be changed to the new style? -Varina
  9. Sigh. Thanks Jim. That fixed my issue for the shopping_cart file. I finally got used to the code from 2.2 This 2.3.1 code is a bit harder for me to figure out. Hopefully it will start making more sense soon. Now I have to go back and undo the button changes I made on the ship_estimator file...since it is throwing errors in IE too. Grumble, grumble...
  10. I spoke too soon. Everything works great in Chrome, Firefox, but in IE I am missing my infoboxes and the checkout button. I noticed I have this error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0) Timestamp: Sat, 18 Feb 2012 18:24:58 UTC Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) Line: 0 Char: 0 Code: 0 URI: http://pinecreekwood.com/catalog/shopping_cart.php Any ideas on how I fix this? If I remove the javascript code my page works again. Varina
  11. Jim, Thanks for the reply. I posted the wrong snippet of code yesterday. Wrong copy / paste function on my part. I should have proofread it better. Sorry about that. At the top of my shopping_cart.php file I have this code: <!-- added for pop-up ship estimator //--> <SCRIPT LANGUAGE="JavaScript"><!-- function estimatorpopupWindow(URL) {window.open(URL,'shippingestimator','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600')} //--></script> <!-- added for pop-up ship estimator end //--> Then I used this code just above the checkout button: <!-- added for pop-up ship estimator //--> <td align="left" class="main"> <?php echo '<a href="javascript:estimatorpopupWindow(\'' . tep_href_link(FILENAME_SHIP_ESTIMATOR, '', 'SSL') . '\')">' . tep_image_button('button_estimate_shipping.gif', IMAGE_BUTTON_SHIP_ESTIMATOR) . '</a>'; ?> </td> <!-- added for pop-up ship estimator end //--> It works just fine. I just wanted to change button from an image to the button set my store uses using the <div> classes. I tried your new code, but it isn't working with my page, the code shows up in the shopping cart, not a button. I changed it to this: <?php echo tep_draw_button (IMAGE_BUTTON_SHIP_ESTIMATOR, 'check', 'javascript:estimatorpopupWindow(\'' . tep_href_link (FILENAME_SHIP_ESTIMATOR, '', 'SSL') . '\')'); ?> Now it seems to work. Now I just have to figure out how position it right and restyle the pop up window. Thanks for helping! -Varina
  12. Jim, I am trying to convert your Shipping Cost Estimator to work with my 2.3.1. store. I am having trouble converting the code to make the pop up window work with my store buttons. I don't know how to put in the reference to the javascript function. Right now when I click the ship estimate button it just loads the information into the same window. I trying to modify this: <!-- added for pop-up ship estimator //--> <div class="buttonSet"> <span class="buttonAction"><?php echo '<a href="javascript:estimatorpopupWindow' .tep_draw_button(IMAGE_BUTTON_SHIP_ESTIMATOR, 'triangle-1-e', tep_href_link(FILENAME_SHIP_ESTIMATOR, '', 'SSL')); ?></span> </div> <!-- added for pop-up ship estimator end //--> Right now I have this: <!-- added for pop-up ship estimator //--> <div class="buttonSet"> <span class="buttonAction"><?php echo '<a href="javascript:estimatorpopupWindow' .tep_draw_button(IMAGE_BUTTON_SHIP_ESTIMATOR, 'triangle-1-e', tep_href_link(FILENAME_SHIP_ESTIMATOR, '', 'SSL')); ?></span> </div> <!-- added for pop-up ship estimator end //--> Which does not work. Could you please help me straighten this out? Thanks, Varina
  13. I currently have Paypal Standard installed in my OSC 2.3.1 store. I would like to integrate the Itemized cart from the old Paypal that I had with OSC .2.2 It had the option for itemized and aggregate cart. I tried this fix: http://addons.oscommerce.com/info/6783 But it did not work for me, all I got was one item name in the invoice and the same quantity of one, and the total price... Looking at the code in my old paypal.php file, it seems it could be added to the new paypal_standard.php file with a little bit of updating for the new code format. Unfortunately I am not a PHP programmer, and so far the conversions I have tried have just sent me to the paypal website when I click confirm instead of coming up with an invoice. I was hoping someone could help me figure out how to make the code work. Old Code from paypal.php function formFields($txn_sign = '', $payment_amount = '', $payment_currency = '', $payment_currency_value = '', $orders_id = '', $return_url = '', $cancel_url = '' ) { global $order, $currencies; $my_currency = (!empty($payment_currency)) ? $payment_currency : $this->currency(); $my_currency_value = (!empty($payment_currency_value)) ? $payment_currency_value : $currencies->get_value($my_currency); //Merchant Info $paypal_fields = tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_BUSINESS_ID); //Currency $paypal_fields .= tep_draw_hidden_field('currency_code', $my_currency); //Shopping Cart Info if(MODULE_PAYMENT_PAYPAL_METHOD == 'Itemized') { $paypal_fields .= tep_draw_hidden_field('upload', sizeof($order->products)) . tep_draw_hidden_field('redirect_cmd', '_cart') . tep_draw_hidden_field('handling_cart', number_format($order->info['shipping_cost'] * $my_currency_value, $currencies->get_decimal_places($my_currency))); //Itemized Order Details for ($i=0,$index=1; $i<sizeof($order->products); $i++, $index++) { //$index = $i+1; $paypal_fields .= tep_draw_hidden_field('item_name_'.$index, $order->products[$i]['name']). tep_draw_hidden_field('item_number_'.$index, $order->products[$i]['model']). tep_draw_hidden_field('quantity_'.$index, $order->products[$i]['qty']). tep_draw_hidden_field('amount_'.$index, number_format($order->products[$i]['final_price']* $my_currency_value,2)); $tax = ($order->products[$i]['final_price'] * ($order->products[$i]['tax'] / 100)) * $my_currency_value; $paypal_fields .= tep_draw_hidden_field('tax_'.$index, number_format($tax, 2)); //Customer Specified Product Options: PayPal Max = 2 if ($order->products[$i]['attributes']) { //$n = sizeof($order->products[$i]['attributes']); for ($j=0; $j<2; $j++) { if($order->products[$i]['attributes'][$j]['option']){ $paypal_fields .= $this->optionSetFields($j,$index,$order->products[$i]['attributes'][$j]['option'],$order->products[$i]['attributes'][$j]['value']); } else { $paypal_fields .= $this->optionSetFields($j,$index); } } } else { for ($j=0; $j<2; $j++) { $paypal_fields .= $this->optionSetFields($j,$index); } } } } else { //Aggregate Cart (Method 1) $paypal_fields .= tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('redirect_cmd', '_xclick') . tep_draw_hidden_field('amount', !empty($payment_amount) ? $payment_amount : $this->amount($my_currency)) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $my_currency_value, $currencies->get_decimal_places($my_currency))); $item_number = ''; for ($i=0; $i<sizeof($order->products); $i++) $item_number .= ' '.$order->products[$i]['name'].' ,'; $item_number = substr_replace($item_number,'',-2); $paypal_fields .= tep_draw_hidden_field('item_number', $item_number); } New code I would like to add the itemized part to: function process_button() { global $customer_id, $order, $sendto, $currency, $cart_PayPal_Standard_ID, $shipping; $process_button_string = ''; $parameters = array('cmd' => '_xclick', 'item_name' => STORE_NAME, 'shipping' => $this->format_raw($order->info['shipping_cost']), 'tax' => $this->format_raw($order->info['tax']), 'business' => MODULE_PAYMENT_PAYPAL_STANDARD_ID, 'amount' => $this->format_raw($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']), 'currency_code' => $currency, 'invoice' => substr($cart_PayPal_Standard_ID, strpos($cart_PayPal_Standard_ID, '-')+1), 'custom' => $customer_id, 'no_note' => '1', 'notify_url' => tep_href_link('ext/modules/payment/paypal/standard_ipn.php', '', 'SSL', false, false), 'return' => tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'), 'cancel_return' => tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'), 'bn' => 'osCommerce22_Default_ST', 'paymentaction' => ((MODULE_PAYMENT_PAYPAL_STANDARD_TRANSACTION_METHOD == 'Sale') ? 'sale' : 'authorization')); Everything else is working fine, I am getting my order process emails, and the customer gets sent back to my store after completing the Paypal transaction. I really don't want to have to install Paypal IPN, especially since I can't figure out which version I need, and the Standard pretty much does everything else I need. Does anyone want to help me tackle this project?
  14. @@dog-toyz The dialog boxes are in the following code: Find: $('#message').dialog( { shadow: true, modal: false, draggable: false, resizable: false, closeOnEscape: false, position: ['center', 50], width: 480, height: 75, open: function () { $('.ui-dialog-titlebar', $(this).parent()).hide(); setTimeout(function (){$('#message').dialog('close');$('#messagecontent').empty();}, 2000); } }); $('#loader').dialog( { shadow: false, modal: true, draggable: false, resizable: false, closeOnEscape: false, position: ['center', 100], width: 75, height: 100, open: function () { $('.ui-dialog-titlebar', $(this).parent()).hide(); $(this).parent().addClass('nobord'); }, }); $('#account').dialog( { shadow: true, draggable: false, resizable: false, closeOnEscape: false, width: 400, position: ['center', 100], open: function () $('#addresses').dialog( { shadow: false, modal: true, width: 400, position: ['center', 100], open: function () Under position: change the number 100 to move the placement of the boxes up or down.
  15. Thanks for converting this for me. Unfortunately it didn't do what it was supposed to. I got a input text box instead of my item name. Without any coding in checkout.php I got the same thing yesterday. So it looked all pretty but didn't do anything. :( I double checked the add on's coding in 3 page checkout, and while it kind of worked, it didn't quite give me what I wanted with more than one item in the cart. I need to abandon that add on and find a better one. Grr... It is so annoying that they changed the Paypal checkout from v 2.2. I really liked the itemized descriptions...now I have to try and find something else that will work. Yay on the breadcrumbs. I downloaded your newest version and things look great. Two little things I would like to modify... The hang time on the error boxes - how do I make it longer? (a lot of our customers are old and slow...and the box disappears kind of quick...) A space below (between) the products. I am a little OCD too, and those darn touching images really bother me, and I've tried a bunch of different ways to add a space, and can't find the right way to do it. ;) Thanks. -V