Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

grgr

Pioneers
  • Posts

    5
  • Joined

  • Last visited

Everything posted by grgr

  1. Has anyone got any ideas how this can be made to work when using the in stock/out stock flag on the product listing?
  2. I had problems but I got there in the end - of course, my problems may not be the same as yours. This is what I have done (I think!): /catalog/includes/modules/payment/ edit paypal_standard.php find around line 560 //------insert customer choosen option eof ---- $total_weight += ($order->products[$i]['qty'] * $order->products[$i]['weight']); $total_tax += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty']; $total_cost += $total_products_price; $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n"; } and under this insert: // lets start with the email confirmation //--- Beginning of addition: Ultimate HTML Emails ---// if (EMAIL_USE_HTML == 'true') { require(DIR_WS_MODULES . 'UHtmlEmails/'. ULTIMATE_HTML_EMAIL_LAYOUT .'/checkout_process_paypal.php'); $email_order = $html_email; }else{//Send text email //--- End of addition: Ultimate HTML Emails ---// find this at around line 620: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } and ABOVE it insert this: //--- Beginning of addition: Ultimate HTML Emails ---// } if(ULTIMATE_HTML_EMAIL_DEVELOPMENT_MODE === 'true'){ //Save the contents of the generated html email to the harddrive in .htm file. This can be practical when developing a new layout. $TheFileName = 'Last_mail_from_checkout_process.php.htm'; $TheFileHandle = fopen($TheFileName, 'w') or die("can't open error log file"); fwrite($TheFileHandle, $email_order); fclose($TheFileHandle); } //--- End of addition: Ultimate HTML Emails ---// close and save this now. Goto /public_html/catalog/includes/modules/UHtmlEmails/xxxxxxx/ where xxxxx is the template folder you are using. create a duplicate of checkout_process and call it 'checkout_process_paypal.php' open the file and change line 15: require(DIR_WS_LANGUAGES . $language . '/modules/UHtmlEmails/Standard/checkout_process.php'); change to : require(DIR_WS_LANGUAGES . 'english/modules/UHtmlEmails/Standard/checkout_process.php'); Seems to be working OK for me at the moment, I've gone through checkout quite a few times now with no problems that I know of yet. Don't ask me how or why it works, it just works for me.
  3. Sorry, didn't see your question earlier. You can see it at puppycages.co.uk - It is an adult toys site, be warned, and the dotd isn't always running. Essentially, all that has been done (from memory) is exactly duplicate everything to do with the specials: boxes, functions, DB tables, queries, admin etc. the only real exception is a dotd landing page which is just a simple php page with the product picture and then this links to the product info page.
  4. Done. I knew it was going to be simple! if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; }else { if ($dotd_price = tep_get_products_dotd_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($dotd_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } }
  5. I am in the process in making a Deal of the Day page and I'm almost there. I have to say that my PHP progamming knowledge is, well, no existant. My Deal of the Day I have based on the Specials module and is mostly a copy of it. I have only a few little problems to solve, the follwing one is the one I have hit a wall with. I have added a bit of code to the catalog/product_info page to try and display the normal price or the special price of the DotD price. This is where I am after a few hours trying different things (the DotD Works but the Specials price does not). if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; }else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } if ($dotd_price = tep_get_products_dotd_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($dotd_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } Like I say, the above half works in that it currently displays a DotD price but not a Specials price. I'm sure it is probably very easy but I have just hit a wall. Any help greatfuly recieved!
×
×
  • Create New...