talon177
-
Posts
403 -
Joined
-
Last visited
Posts posted by talon177
-
-
One thing i noticed is that the stats_ad_results.php counts in shipping and tax, so you still don't really no how much profit you make from each ad.
For instance lets say 1 item totals 37.88 but 5 was shipping and 2.88 was tax, and item sold was 30 and item cost was 28 which equals 2 profit.
But then u spent 15 dollars for advertising.
Currently theres no way to factor in how much you really made, I guess the best solution for now would be just to show total sale item, that way you can just sales - cost = profit, but then you would still have to figure out what profit came from which ad.
-
In the html output does our email address really need to be shown?
-
Ok so thanks to ecartz the qty input now works for the master product but not the slave, i'm wondering what do i need to change exactly on input/master_listings.php to make this work
From:
case 'MASTER_LIST_BUY_NOW': $lc_align = 'center'; $lc_valign = 'top'; if ((STOCK_CHECK == 'true')&&(tep_get_products_stock($listing['products_id']) < 1)) { $lc_text = TEXT_STOCK; } elseif ((STOCK_CHECK == 'false')&&(tep_get_products_stock($listing['products_id']) < 1)) { $qty_array = array(); for ($i=0; $ns = 20, $i <= $ns; $i++) { $qty_array[] = array('id' => $i, 'text' => $i); $lc_text = tep_draw_pull_down_menu('Qty_ProdId_' . $listing['products_id'], $qty_array); } } else { $quantity = tep_get_products_stock($listing['products_id']); $qty_array = array(); for ($i=0; $ns = (($quantity < 20) ? $quantity : 20), $i <= $ns; $i++) { $qty_array[] = array('id' => $i, 'text' => $i); $lc_text = tep_draw_pull_down_menu('Qty_ProdId_' . $listing['products_id'], $qty_array); } } break;
To: ????
The code for product_info.php is
From:
<td align="right" class="main"><?php if ($product_info['products_quantity'] > 0) { echo TEXT_QUANTITY . ' ' . tep_draw_pull_down_menu('Qty_ProdId_' . $product_info['products_id'], $qty_array); } elseif ((STOCK_CHECK == 'false')&& ($product_info['products_quantity'] < 1)) { $qty_array = array(); for ($i=0; $ns = 20, $i <= $ns; $i++) { $qty_array[] = array('id' => $i, 'text' => $i); } echo TEXT_QUANTITY . ' ' . tep_draw_pull_down_menu('Qty_ProdId_' . $product_info['products_id'], $qty_array); } else { echo TEXT_STOCK; }
To:
<td align="right" class="main"><?php echo TEXT_QUANTITY . ' ' . tep_draw_input_field('Qty_ProdId_' . $product_info['products_id'], '1', 'size="4"'); echo tep_draw_separator('pixel_trans.gif', '30', '10'); ?>
But now 1 question that just came up is stock quantity since urs can enter any number
-
ecartz: Thanks for the quick fix for input quantity, i'll try the other one next!
Also i Just ran into another problem, if you select manufacturer the buy now buttons doesn't work it just shows at the end of the extention products_id= and not products_id=1
-
Was wondering if someone knew how I could code slave hidden files that are showing up in the boxes below to link to the master product instead of the slave product, also master products with prices, and then make master products with price 0 not show up
whatsnew box
shopping cart box
specials box
etc...
Thanks for the help in advance.
-
Anyone happen to know what new code is needed for version 1.1.5 to make quantity drop down to an input? I can get it to somewhat work by using
echo TEXT_QUANTITY . ' ' . tep_draw_input_field('Qty_ProdId_', $product_info['products_id'], 'size="4"');
but the input area keeps saying value="28" which is referring to $product_info['products_id']
-
Instead of hiding slave products from whats new and new products i think a nicer solution could be to actually let them show but point them into the master instead, anyone know the proper code to set this up. This way instead of hiding all slaves from these places users could see them and when they click on them it'll bring them to the master, thus adding new products to old masters will let users know that something new is there.
-
Right now one problem i see is that if you have slaves that belong to multiple products, and users do a search they'll see double results and also you have double inventory.
-
PayPal IPN and CCGV - Two great tastes that taste great together
I have Greg's PayPal IPN and Strider's CCGV working great together. I just tested it using:
1. Gift Voucher: Check
2. Discount Coupon: Check
3. Gift Voucher and Discount Coupon: Check
There is also a bug report about checkout_process.php's logic. You can see this here: Error in checkout_process.php's logic
The fix for the above code is here: http://www.oscommerce.com/forums/index.php?sho...10entry333815
The only thing that I can see might give people an issue is with the sort order of the order totals module. That is the fix for 85% of questions Strider gets asked about order totals.
Make sure they are set up as follows (Your numbers may vary, but make sure they are in this order):
1. Shipping
2. Discount Coupons
3. Gift Vouchers
4. Sub-Total
5. Tax
6. Total
1. Shipping is static - You want this for the total of the order, nat after discounts/Gift certs are applied.
2. Discount Coupons - You want discounts to be applied before gift certificates, not after.
3. You want their gift certificates taken off after you apply shipping and a discount.
4. Sub total - When placed here, You get the true subtotal of everything. This is the number passed to PayPal or your CC processor.
5. Tax - You want tax applied to the subtotal.
6. Total - This is the total price you pay.
PayPal IPN sends the shipping total and the sub-total to PayPal. Its not that it's sending the incorrect amount to PayPal, but you may not have the correct sort order.
There is also an issue with these modules both calling the order module. To fix this, do this:
In \catalog\includes\modules\payment\paypal\checkout_process.php find:
require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total;
Change that to:
if(!class_exists('order_total')) { ?include(DIR_WS_CLASSES . 'order_total.php'); ?$order_total_modules = new order_total; }
Hope this helps. Let me know.
Noel
I think these 2 mods combined together are great, while this post mentions the order im wondering about tax issues in California. Im wondering if i could change the sort order to
1. Sub-Total
2. Discount Coupons
3. Tax
4. Shipping
5. Gift Vouchers
6. Total
The reason for doing this order is because i dont think most people would want to give a discount on shipping, and that in california shipping isnt taxed therefore shipping should be after tax, and then finally the gift voucher would pay for 1-4 then the total bill left over.
Has all the bugs between ccgv and paypal 2.3 been solved from the previous post?
Thanks!
-
Just wondering how does everyone like the html newsletter, does this also support html code, and can guest subscribe to the newsletter as well?
-
Hi - first of all - thanks to Matt!
The new version is very good an has good new features - I implemented it and it is like this now:
I was wondering if it was a big problem to change it around that it works like this:
I do I only have to change around in the products_info.php ?
I think it's a little bit more to do - isn't it? - thanks in advance, you do a great job Matt! :huh: :blink:
The select option with the + - quantity is pretty nice! Also what would be cool is if users could input numbers as well and still use the + - quantity.
-
When setting slave products to hidden is there any other places that need to be fixed besides the ones listed below, and would the fixes from 1.1.2 be compatiable
manufacturer
whats new
search
new products
quantity select input
shopping_cart
specials
product notification for slaves
reviews
tell a friend
buy now button on master product
products_new
-
File Modification:
-> includes/languages/english.php
Find (Line 50):
// header text in includes/header.php
Replace with:
// header text in includes/warnings.php
** Remove File(s) **
includes/header.php //REMOVE FROM ORIGINAL OSC FILES
(Note: includes/header.php is now includes/warnings.php,
* If new contributions look for original osC stylesheet.css use above code instead)
includes/footer.php //REMOVE FROM ORIGINAL OSC FILES
(Note: includes/footer.php is incorporated into templates/osC/main_page.tpl.php
* If new contributions look for original osC stylesheet.css use above code instead)
-
Just noticed that stylesheet.css in the original osC 2.2MS2 is the same as BTS 1.3 templates/osC/stylesheet.css and the only file in BTS 1.3 that is calling the original stylesheet.css is info_shopping_cart.php
***** info_shopping_cart.php *****
Find (Line 25):
<link rel="stylesheet" type="text/css" href="stylesheet.css">
Replace with:
<link rel="stylesheet" type="text/css" href="<?php echo DIR_WS_TEMPLATES; ?>stylesheet.css">
***** FILES/FOLDERS NO LONGER NEEDED *****
stylesheet.css // REMOVED FROM ORIGINAL OSC ->
Note: If new contributions look for original osC stylesheet.css use above code instead
checkout_process.php // DELETE FROM CONTRIB DUPLICATE OF ORIGINAL OSC CODE
download.php // DELETE FROM CONTRIB DUPLICATE OF ORIGINAL OSC CODE
redirect.php // DELETE FROM CONTRIB DUPLICATE OF ORIGINAL OSC CODE
-
When using this contrib, aren't product notifications rendered useless for slave files if they're hidden? Since you can no longer go to these pages, to subscribe? Is it possible to make it so that if a user subscribes for product notification on the master product that it'll also subscribe them to the slave products so if anything changes they'll be notified and pointed back to the master product url?
-
Here's some things that I think should be adjusted. This will be added to the contrib area as well.
***** templates/osC/main_page.tpl.php *****
Find (Line 4-9):
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <?php require(DIR_WS_INCLUDES . 'meta_tags.php'); ?> <title><?php echo META_TAG_TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>"> <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>">
Replace with:
<?php require(DIR_WS_INCLUDES . 'meta_tags.php'); ?> <title><?php echo META_TAG_TITLE; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>"> <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>"> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
***** templates/osC/popup.tpl.php *****
Find (Line 4-8):
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
Replace/Add with:
[COLOR=red]<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">[/COLOR] <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" /> <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
***** info_shopping_cart.php *****
Find (Line 22-23):
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title>
Replace with:
<title><?php echo TITLE; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
-
The previous post was a bit too fast maybe,
Instead you also can (probably is a little better solution than posted above) edit includes/meta_tags.php and replace (approx line 98)
?case CONTENT_ADDRESS_BOOK_PROCESS: ? ?define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline); ? ? ? ?define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS); ? ? ? ?define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1); ? ? ? ?break; ?case CONTENT_ADDRESS_BOOK_PROCESS: ? ?define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline); ? ? ? ?define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS); ? ? ? ?define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1); ? ? ? ?break;
by
?case CONTENT_ADDRESS_BOOK_PROCESS: ? ?define('META_TAG_TITLE', NAVBAR_TITLE_2 . PRIMARY_SECTION . TITLE . $web_site_tagline); ? ? ? ?define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS); ? ? ? ?define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1); ? ? ? ?break;
NAVBAR_TITLE_2 is already defined in the address_book_process language file, so no need to add any define then
Added Paul's info above to a new update in the contrib 29 May 2004 - Meta Tags Bug Fix
-
How's everything going, I was overlooking the BTS and was noticing that all the breadcrumbs throughout the pages are different and was wondering if this needs to be updated, some show for example
$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2);
while others show
$breadcrumb->add(NAVBAR_TITLE_1);
$breadcrumb->add(NAVBAR_TITLE_2);
Also is there any files that you no longer need from the core osC files once installing BTS?
-
After installing v2.2 i'm wondering if this code inside catalog/checkout_success.php will conflict with the Purcahse Without Account contrib. Should these 2 below be combined? If so know what the best method is? Thanks!
//begin PayPal_Shopping_Cart_IPN
tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
} else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) {
$cart->reset(true);
// unregister session variables used during checkout
tep_session_unregister('sendto');
tep_session_unregister('billto');
tep_session_unregister('shipping');
tep_session_unregister('payment');
tep_session_unregister('comments');
tep_session_unregister('paypal_order_id');
}
//end PayPal_Shopping_Cart_IPN
// BoF Purchase Without Account
// tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
// Added a check for a Guest checkout and cleared the session - 030411
if (tep_session_is_registered('noaccount')) {
tep_session_destroy();
tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'));
}
else {
tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL'));
}
// EoF Purchase Without Account
}
-
Oops please disregard last msg.
-
Quick question, i just removed paypal ipn v2 and installed v2.2 but it says
Fatal error: main(): Failed opening required '/home/abc/public_html/includes/modules/payment/paypal/database_tables.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/abc/public_html/admin/paypal.php on line 27
Line 27 shows
require_once DIR_FS_CATALOG_MODULES . 'payment/paypal/database_tables.php');
but isnt the database_tables located inside the includes folder and not the admin/includes folder
But if i look inside my configure.php file it shows that DIR_FS_CATALOG_MODULES points to catalog/includes/modules, how weird
-
If this is possible, it would be great to have the title in the product admin page, as well as easypopulate =D
-
Is it possible to put a title for each of the additional images under the pic? Like for example if u had 6 additional pics u would see the pic, and under it title1, pic2, title 2, etc...
Thanks
-
Happen to know where you can get a list of california zip codeS?
Ad Tracker (where did they come from) Update
in General Add-Ons Support
Posted
thanks for that info, i gotta test that out to see if it works or not on mine