rajonbh

Members

23

• Real Name
Jonas J
• Location
Sweden
1. [Contribution] Discount Coupon Codes

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'] ); }

3. NEW! Complete Order Editing Tool!

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?

5. [contribution] Simple Template System (sts)

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. [contribution] Simple Template System (sts)

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. [contribution] Simple Template System (sts)

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. [contribution] Simple Template System (sts)

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. [contribution] Simple Template System (sts)

Have you added the code for lightbox in catalog/product_info.php?
10. [contribution] Simple Template System (sts)

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. [contribution] Simple Template System (sts)

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. Ajax Order Editor

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. Ajax Order Editor

No, I dont have it installed. I dont think I have any contribs installed that could affect the script. cheers :)
14. Ajax Order Editor

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. Can Only Have Max 5 Payment Modules. Maxsize On Class/globals/session?

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.
×