Jump to content

pinkequine

Members
  • Content count

    29
  • Joined

  • Last visited

  1. pinkequine

    Credit Class & Gift Vouchers for 2.3.4

    perhaps we should all chip in and get someone on freelancer to bid for it :) I might email the magneticone team they did a nice little backend system that I use. Maybe they'd take it on.
  2. pinkequine

    Credit Class & Gift Vouchers for 2.3.4

    Hi I looked at your contrib, It would be great if it was added in as a module, I think there would be a lot of people happy to pay for it as well. Its almost a given that something like this is needed as standard. I havent gone through any more testing but I just found this issue as I only use the one GBP currency in my store. I have a template bought from template monster and they have changed so much of the base php files it was impossible for me to upgrade the template easily to 2.3.4. Both the 2.3.3 version and this one gave me the same result with the zero's. The database was holding the correct amounts though, so I am not sure how much of an impact this actually will have on the functionality, but will test it tomorrow and report back. Oh it should be said that I checked out with COD on my tests, but actually use sage pay server on my site. I do know there was some issue mentioned on the forums about the before_process and that the payment modules werent going back to checkout_process. Its hard when you arent actually a php coder to work it all out.. my mind just boggles sometimes :)
  3. pinkequine

    Credit Class & Gift Vouchers for 2.3.4

    I had a problem its taken days to work out on both this version and the 2.3.4 version of CCGV. The admin amounts were all showing as 0 and the vouchers were not discounting properly and could be re-used. I only have one currency and there is a bit of code throughout all the CCGV new files $currencies->format It clicked when I was changing the default currency on the store and all the amounts went to 0. I checked in the sql database and in there all the amounts are shown correctly in there so I realised it must be something to do with the currency throwing out the display. Sure enough when I removed all instances of this code, it works. Of course this fix is only workable if your store only shows in one currency, but then again if there were more than one currency - maybe this error would not show but for anyone who has been tearing their hair out with this issue, I found a solution.
  4. pinkequine

    Credit Class & Gift Vouchers (CCGV) for 2.3.1

    I had a problem its taken days to work out on both this version and the 2.3.4 version of CCGV. The admin amounts were all showing as 0 and the vouchers were not discounting properly and could be re-used. I only have one currency and there is a bit of code throughout all the CCGV new files $currencies->format It clicked when I was changing the default currency on the store and all the amounts went to 0. I checked in the sql database and in there all the amounts are shown correctly in there so I realised it must be something to do with the currency throwing out the display. Sure enough when I removed all instances of this code, it works. Of course this fix is only workable if your store only shows in one currency, but then again if there were more than one currency - maybe this error would not show but for anyone who has been tearing their hair out with this issue, I found a solution.
  5. pinkequine

    Credit Class & Gift Vouchers for 2.3.4

    Hi I have just installed this contribution and have managed to get the discount coupon working ok, but the gift voucher is not working and I dont know why. I can checkout the gift voucher fine but nothing is being added to the GV queue? I checked the backend database and nothing is getting posted to there. I tested this with several payment modules, cash with order, sagepay server and paypal express and the same happens. Can anyone help? or if not help per se, just let me know which php file is supposed to post to the GV Queue so I can look at it and see if I can work out the issue I am having. Many thanks in advance
  6. pinkequine

    Sage pay Server Error 5006

    I posted that I fixed this on 20th January, but I am now having the exact same problem once again... Same 5006 error even though I am using V1.2 I am running oscommerce 2.3.1 can anyone help, I can't put my site live without fixing this. Is there anything I can do to debug this and see what is happening???? Please help. :'( :'( :'( :'( :'(
  7. pinkequine

    Sage pay Server Error 5006

    For anyone struggling with this, I had to upgrade to V1.2 Sage Pay Server and since I have version 2.3.1 not 2.2 I had to compare the files and ensure no issues with 2.3.1 before doing so. It now works fine.
  8. pinkequine

    [Contribution] Option Types v2

    solved it.... just upload the V2.2 option types shopping_cart.php class file and it works. There must be something missing in the version 2.3.1 file but this one works.
  9. pinkequine

    [Contribution] Option Types v2

    I did get the shopping cart to work with the update/remove etc, the one I installed on the 2.3.1 didnt have that but I used the drop on top then modded it to layout how I wanted. <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require("includes/application_top.php"); if ($cart->count_contents() > 0) { include(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment; } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOPPING_CART); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHOPPING_CART)); require(DIR_WS_INCLUDES . 'template_top.php'); ?> <h1><?php echo HEADING_TITLE; ?></h1> <?php if ($cart->count_contents() > 0) { ?> <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?> <div class="contentContainer"> <h2><?php echo TABLE_HEADING_PRODUCTS; ?></h2> <div class="contentText"> <?php $info_box_contents = array(); $info_box_contents[0][] = array('params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_PRODUCTS); //BOF - Zappo - Option Types v2 - Added Options Column $info_box_contents[0][] = array('params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_OPTIONS); //EOF - Zappo - Option Types v2 - Added Options Column $info_box_contents[0][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_QUANTITY); $info_box_contents[0][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_REMOVE); $info_box_contents[0][] = array('align' => 'right', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_TOTAL); $any_out_of_stock = 0; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { // Push all attributes information in an array if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { while (list($option, $value) = each($products[$i]['attributes'])) { //BOF - Zappo - Option Types v2 - (Hidden field moved below) $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . (int)$products[$i]['id'] . "' and pa.options_id = '" . (int)$option . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . (int)$value . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . (int)$languages_id . "' and poval.language_id = '" . (int)$languages_id . "'"); $attributes_values = tep_db_fetch_array($attributes); // - Zappo - Option Types v2 - If attrib is Text, assign to $attr_value temporarily (Here's that hidden field) if ($value == OPTIONS_VALUE_TEXT_ID) { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . TEXT_PREFIX . $option . ']', $products[$i]['attributes_values'][$option]); $attr_value = $products[$i]['attributes_values'][$option]; } else { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attr_value = $attributes_values['products_options_values_name']; } $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name']; $products[$i][$option]['options_values_id'] = $value; $products[$i][$option]['products_options_values_name'] = $attr_value ; //EOF - Zappo - Option Types v2 - (Line above Assigns $attr_value) $products[$i][$option]['options_values_price'] = $attributes_values['options_values_price']; $products[$i][$option]['price_prefix'] = $attributes_values['price_prefix']; } } } for ($i=0, $n=sizeof($products); $i<$n; $i++) { if (($i/2) == floor($i/2)) { $info_box_contents[] = array('params' => 'class="productListing-even"'); } else { $info_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($info_box_contents) - 1; //BOF - Zappo - Option Types v2 - Rearanged Product(s) cart-listing, and added Options Column // Rearanged products_name listing, and placed AFTER the Stock-Check (For displaying stock check next to Prod. Name /* $products_name = '<table border="0" cellspacing="0" cellpadding="0">' . ' <tr>' . ' <td class="productListing-data" align="center"><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></td>' . ' <td class="productListing-data" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>'; */ //EOF - Zappo - Option Types v2 - Rearanged Product(s) cart-listing, and added Options Column if (STOCK_CHECK == 'true') { $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; //BOF - Zappo - Option Types v2 - Changed $stock_check to also be used when item is in Stock... } } else { $stock_check = ''; //EOF - Zappo - Option Types v2 - Changed $stock_check to also be used when item is in Stock... } //BOF - Zappo - Option Types v2 - Rearanged Product(s) cart-listing, and added Options Column $products_name = '<table border="0" cellspacing="0" cellpadding="0">' . ' <tr>' . ' <td class="productListing-data" align="left" ><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b>' . $stock_check . '</a></td>' . ' </tr>' . ' <tr>' . ' <td class="productListing-data" align="left"><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></td>' . ' </tr>' . '</table>'; $products_Options = '<table border="0" cellspacing="0" cellpadding="0">' . ' <tr>' . ' <td class="productListing-data" >'; //EOF - Zappo - Option Types v2 - Rearanged Product(s) cart-listing, and added Options Column if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { reset($products[$i]['attributes']); while (list($option, $value) = each($products[$i]['attributes'])) { //BOF - Zappo - Option Types v2 - Rearanged Product(s) cart-listing, added Options Column, Upload preview link, and added Prices to Attributes // $imageDir = (tep_session_registered) ? UPL_DIR : TMP_DIR; //$image_link1 = ''; // $image_link2 = ''; //if (file_exists($imageDir.$products[$i][$option]['products_options_values_name'])) { // $image_link1 = '<a href="' . $imageDir . $products[$i][$option]['products_options_values_name'] . '" target="_blank">'; // $image_link2 = tep_image(DIR_WS_ICONS . 'view.gif') . '</a>'; // } $Option_Price = ($products[$i][$option]['options_values_price'] != '0') ? ' - (' . $products[$i][$option]['price_prefix'] . $currencies->display_price($products[$i][$option]['options_values_price'], tep_get_tax_rate($products[$i]['tax_class_id'])) . ')' : ''; $products_Options .= '<special>- ' . $products[$i][$option]['products_options_name'] . ': <i>' . $image_link1 . $products[$i][$option]['products_options_values_name'] . $image_link2 . '</i>' . $Option_Price . '</special><br>'; } } $products_Options .= ' </td>' . ' </tr>' . '</table>'; $info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"', 'text' => $products_name); $info_box_contents[$cur_row][] = array('align' => 'left', 'params' => 'class="productListing-data"', 'text' => $products_Options); //EOF - Zappo - Option Types v2 - Rearanged Product(s) cart-listing, added Options Column, Upload preview link, and added Prices to Attributes $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => tep_draw_button(IMAGE_BUTTON_UPDATE, 'refresh') . '<br/>or<br/>' . tep_draw_button(IMAGE_BUTTON_REMOVE, 'trash', tep_href_link(FILENAME_SHOPPING_CART, 'products_id=' . $products[$i]['id'] . '&action=remove_product')) ); $info_box_contents[$cur_row][] = array('align' => 'right', 'params' => 'class="productListing-data" valign="top"', 'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>'); } new productListingBox($info_box_contents); ?> </table> <p align="right"><strong><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></strong></p> <?php if ($any_out_of_stock == 1) { if (STOCK_ALLOW_CHECKOUT == 'true') { ?> <p class="stockWarning" align="center"><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></p> <?php } else { ?> <p class="stockWarning" align="center"><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></p> <?php } } ?> </div> <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary'); ?></span> </div> <?php $initialize_checkout_methods = $payment_modules->checkout_initialization_method(); if (!empty($initialize_checkout_methods)) { ?> <p align="right" style="clear: both; padding: 15px 50px 0 0;"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></p> <?php reset($initialize_checkout_methods); while (list(, $value) = each($initialize_checkout_methods)) { ?> <p align="right"><?php echo $value; ?></p> <?php } } ?> </div> </form> <?php } else { ?> <div class="contentContainer"> <div class="contentText"> <?php echo TEXT_CART_EMPTY; ?> <p align="right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></p> </div> </div> <?php } require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  10. pinkequine

    [Contribution] Option Types v2

    did anyone ever resolve the issue with not being able to add products with text options to the shopping cart for version 2.3.1? if so would be really grateful to know how you fixed it. For the life of me I just cannot understand why it wont add it. I have tested it, with select options it adds ok, but if I change those to txt it doesnt.
×