Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

rajonbh

Pioneers
  • Posts

    23
  • Joined

  • Last visited

Profile Information

  • Real Name
    Jonas J
  • Location
    Sweden

rajonbh's Achievements

  1. Hi, Yes, I've come up with a solutions that works (finally). This solves the problem with subtotals showing with the discount applied, even when Display subtotal with applied discount? is set to false. includes/classes/discount_coupon.php ~line 368 Find: if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_SUBTOTAL == 'false' ) { //we don't want to display the subtotal with the discount applied, so apply the discount then set the applied_discount variable to zero so that it's not added into the order subtotal, but is still used to correctly calculate tax $actual_shown_price = ( $this->apply_tax( $product['final_price'], $product['tax'] ) * $product['qty'] ) - ( $discount['applied_discount'] + $discount['discount_tax'] ); $applied_discount = 0; } $shown_price = ( $this->apply_tax( $product['final_price'], $product['tax'] ) * $product['qty'] ) - ( $discount['applied_discount'] + $discount['discount_tax'] ); Replace with: if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_SUBTOTAL == 'false' ) { //we don't want to display the subtotal with the discount applied, so apply the discount then set the applied_discount variable to zero so that it's not added into the order subtotal, but is still used to correctly calculate tax $actual_shown_price = ( $this->apply_tax( $product['final_price'], $product['tax'] ) * $product['qty'] ) - ( $discount['applied_discount'] + $discount['discount_tax'] ); $applied_discount = 0; $shown_price = $this->apply_tax( $product['final_price'], $product['tax'] ) * $product['qty']; } else { $shown_price = ( $this->apply_tax( $product['final_price'], $product['tax'] ) * $product['qty'] ) - ( $discount['applied_discount'] + $discount['discount_tax'] ); }
  2. A quick solution is to open includes/classes/sts.php around line 165 $this->template['headcontent'] = ''; $this->template['headcontent'] .= '<meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '" />' . "\n"; $this->template['headcontent'] .= $this->template['headertags']. "\n"; $this->template['headcontent'] .= '<base href="' . (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . '" />' . "\n"; Just add your meta tags after this code.. I.e $this->template['headcontent'] = ''; $this->template['headcontent'] .= '<meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '" />' . "\n"; $this->template['headcontent'] .= $this->template['headertags']. "\n"; $this->template['headcontent'] .= '<base href="' . (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . '" />' . "\n"; $this->template['headcontent'] .= '<meta name="description" content=""/>' . "\n"; etc... A better solution would be to install a contrib for header tags. There's a few to choose from, but I can recommend Header Tags for novices. It's fast and clean, includes install for STS and very easy to adjust after your own demands.
  3. Has anyone got the new version (5.0.6) working with CCGV? I've searched the thread but could only find information with CCGV and an older version of this editor. I've managed to get it to subtract the Coupon/Discount from ordertotal, but I have no clue how I can update the total tax. "$order->info['tax'] -= value" doesn't work at all.. Has anyone got any ideas on how to make this work with CCGV or where I can find the tax-calculation in the editor?
  4. For all you using STS with this contrib, here's my mod for it. Page title: if landing on a Category page -> Name of site - Category 1 - Category 2..etc if landing on a Product page -> Name of site - Category 1 | Productname if landing on all other pages -> Name of site - Heading title Of course, if you have defined any headertags (title,keywords,description) in admin then these will show instead. in includes/modules/sts_inc/general.php: $sts->template['headertags']= "<title>"; $sts->template['headertags'] .= (strlen($breadcrumb_tags->trail_tags(' - ')) > 0) ? TITLE . ' - ' . $breadcrumb_tags->trail_tags(' - ') . ' | ' . $header_tags[title_tag] : TITLE . ' - ' . HEADING_TITLE; $sts->template['headertags'] .= "</title>\n"; $sts->template['headertags'] .= "<meta name=\"description\" content=\""; $sts->template['headertags'] .= htmlspecialchars(strlen($header_tags[products_name])>0?$header_tags[products_name]:HEADING_TITLE) . ' ' . htmlspecialchars($header_tags[desc_tag]); $sts->template['headertags'] .= "\">\n<meta name=\"keywords\" content=\""; $sts->template['headertags'] .= htmlspecialchars($header_tags[keywords_tag]); $sts->template['headertags'] .= "\">\n"; Since pages created with ie. Information Pages Unlimited or Extra pages-info box w/Admin don't define a Heading Title we need to add some extra code for this. For Information Pages Unlimited: in information.php: Find ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> Change to define('HEADING_TITLE', $title); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> For Extra pages-info box w/Admin: in extra_info_pages.php: Find ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> Change to define('HEADING_TITLE', $page_check[pages_title]); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
  5. I can't access your page. 1194 - Table 'whos_online' is marked as crashed and should be repaired delete from whos_online where time_last_click < '1185217084'
  6. The name of the templatefile should be index.php_22.html IE. if you want another template for index.php?cPath=21_13 the name should be index.php_21_13.html You should put the file in your sts_templates/your_template_folder/ Also check that you've installed the sts_index-module in admin.
  7. Sorry..my mistake. I thought the script was needed for more pics. In product_info.php. Change <script language="javascript"><!-- ...code... </script> <noscript> ...code... </noscript> to: <?php echo '<a rel="lightbox" href="'.tep_href_link(DIR_WS_IMAGES.$mopics_images[$mo_item].'&invis='.(MOPICS_GROUP_WITH_PARENT=='true'?$mo_item:($mo_item+1))).'" title="'. $product_info['products_name'] .' - '. $manufacturer['manufacturers_name'] .'">' . tep_image(DIR_WS_IMAGES . $mopics_images[$mo_item], addslashes($product_info['products_name']), (MOPICS_RESTRICT_PARENT=='false'&&$mo_item==0&&MOPICS_GROUP_WITH_PARENT=='true'?'':$mopics_image_width), (MOPICS_RESTRICT_PARENT=='false'&&$mo_item==0&&MOPICS_GROUP_WITH_PARENT=='true'?'':$mopics_image_height), 'hspace="5" vspace="5"') . '<br>'. tep_image(DIR_WS_IMAGES .'zoom.gif', TEXT_CLICK_TO_ENLARGE).TEXT_CLICK_TO_ENLARGE.'</a>'; ?>
  8. Ok. The code for the popupwindow in catalog/product_info.php should look something like this (for More Pics 6) document.write('<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'].'&invis='.(MOPICS_GROUP_WITH_PARENT=='true'?$mo_item:($mo_item+1))).'\')">' . tep_image(DIR_WS_IMAGES . $mopics_images[$mo_item], addslashes($product_info['products_name']), (MOPICS_RESTRICT_PARENT=='false'&&$mo_item==0&&MOPICS_GROUP_WITH_PARENT=='true'?'':$mopics_image_width), (MOPICS_RESTRICT_PARENT=='false'&&$mo_item==0&&MOPICS_GROUP_WITH_PARENT=='true'?'':$mopics_image_height), 'hspace="5" vspace="5"') . '<br>'. tep_image(DIR_WS_IMAGES .'zoom.gif', TEXT_CLICK_TO_ENLARGE).TEXT_CLICK_TO_ENLARGE.'</a>'); I'm not extremely familiar with More Pics but try changing to: /* document.write('<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'].'&invis='.(MOPICS_GROUP_WITH_PARENT=='true'?$mo_item:($mo_item+1))).'\')">' . tep_image(DIR_WS_IMAGES . $mopics_images[$mo_item], addslashes($product_info['products_name']), (MOPICS_RESTRICT_PARENT=='false'&&$mo_item==0&&MOPICS_GROUP_WITH_PARENT=='true'?'':$mopics_image_width), (MOPICS_RESTRICT_PARENT=='false'&&$mo_item==0&&MOPICS_GROUP_WITH_PARENT=='true'?'':$mopics_image_height), 'hspace="5" vspace="5"') . '<br>'. tep_image(DIR_WS_IMAGES .'zoom.gif', TEXT_CLICK_TO_ENLARGE).TEXT_CLICK_TO_ENLARGE.'</a>'); */ document.write('<a rel="lightbox" href="'.tep_href_link(DIR_WS_IMAGES.$mopics_images[$mo_item].'&invis='.(MOPICS_GROUP_WITH_PARENT=='true'?$mo_item:($mo_item+1))).'" title="'. $product_info['products_name'] .' - '. $manufacturer['manufacturers_name'] .'">' . tep_image(DIR_WS_IMAGES . $mopics_images[$mo_item], addslashes($product_info['products_name']), (MOPICS_RESTRICT_PARENT=='false'&&$mo_item==0&&MOPICS_GROUP_WITH_PARENT=='true'?'':$mopics_image_width), (MOPICS_RESTRICT_PARENT=='false'&&$mo_item==0&&MOPICS_GROUP_WITH_PARENT=='true'?'':$mopics_image_height), 'hspace="5" vspace="5"') . '<br>'. tep_image(DIR_WS_IMAGES .'zoom.gif', TEXT_CLICK_TO_ENLARGE).TEXT_CLICK_TO_ENLARGE.'</a>');
  9. Have you added the code for lightbox in catalog/product_info.php?
  10. Yes there is.. You can create a file i.e. shopping_cart.php.html and put it in your sts-template-folder/content/ That template will replace all $content of the main template.
  11. I have a question regarding the $content. I'm trying to add some extra information directly in shopping_cart.php, but nothing shows up on the page. The $content only shows everything between <form> and </form>, and not from column left to column right. If I put the extra information before the last </form> it shows, otherwise not. Is there an easy way to get STS to add the information after the </form> tag but before column_right.php?
  12. Still didn't work, and id="keywords" didn't show up now either. But I got it working now..finally :) I had to adjust the function tep_draw_input_field, cause it didn't write the parameters for the input field. Thanks for the quick help.
  13. No, I dont have it installed. I dont think I have any contribs installed that could affect the script. cheers :)
  14. First of all..thanks for a great contrib. And second..I can't add products with it. Everything else works just fine. I've tried with both FF2.0 and IE6. I get the popup when I click on Add product. I start typing but nothing happens. No searchresults or anything. I've also tried to comment out xmlHttp.onreadystatechange as Freeman suggested, but with no results. I have 14k products in my shop. Could this affect the functionality of the script? Any help would be appreciated.
  15. I'm having problems with the payment modules in a shop. When I have more than five payment-modules active at the same time I get the following error: Warning: payment(includes/languages/svenska/modules/payment/paypa) [function.payment]: failed to open stream: No such file or directory in /public_html/ebutikbas/includes/classes/payment.php on line 38 Warning: payment() [function.include]: Failed opening 'includes/languages/svenska/modules/payment/paypa' for inclusion (include_path='.:/usr/local/lib/php') in /public_html/ebutikbas/includes/classes/payment.php on line 38 Warning: payment(includes/modules/payment/paypa) [function.payment]: failed to open stream: No such file or directory in /public_html/ebutikbas/includes/classes/payment.php on line 39 Warning: payment() [function.include]: Failed opening 'includes/modules/payment/paypa' for inclusion (include_path='.:/usr/local/lib/php') in /public_html/ebutikbas/includes/classes/payment.php on line 39 Fatal error: Cannot instantiate non-existent class: in /public_html/ebutikbas/includes/classes/payment.php on line 41 The payment module that has the highest Sort order gets the warning. IE: As shown it's the Paypal module that gets the error message. If I change Sort order then another payment module gets the error/warning. All modules work without problems if I have 5 or less payment modules active. Is there a max size for the array/session/global variable/class? If so, where can I find and adjust it? Would really apprecciate some help.
×
×
  • Create New...