Beer Monster Posted October 30, 2005 Author Share Posted October 30, 2005 Anyone know how to get this to work with the inbox skins contrib.May shopping cart is skinned until I add something to it. then it switches to the advanced cartbox and the skin gets turned off. any thoughts? Most of these skinning contribs make changes to the infobox class in includes/classes/boxes.php To make the cartbox work with such contribs, you will need to make corresponding changes to the cartbox class. Quote Light, in the absence of eyes, illuminates nothing. Link to comment Share on other sites More sharing options...
jsinp Posted October 31, 2005 Share Posted October 31, 2005 If anyone would like to use advanced Cartbox with infobox skins Instead of the code in the install.txt paste the following code In catalog/includes/classes/boxes.php before the last ?> tag: //BOF: Advanced Cartbox Version class cartBox extends tableBox { function cartBox ($contents) { global $infobox_header_text, $infobox_header_link; $info_box_contents = array(); if (SKIN_INFOBOX_ACTIVE == 'true'){ $info_box_contents[] = array('text' => $this->newinfoBoxContents($contents)); //reset globals as these should only be used once! $infobox_header_text = ''; $infobox_header_link = false; } else { $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="infoBox"'; } $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="infoBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 'params' => 'class="boxText"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } function newinfoboxcontents($contents) { global $infobox_header_text, $infobox_header_link, $skin_slice_set; $this->table_cellpadding = '0'; $this -> align = 'center'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 'params' => 'class="boxText"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } if ($infobox_header_link != false) { $infobox_link = '<a href="' . $infobox_header_link . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } return $this->tableBox($info_box_contents, false, true, $infobox_header_text, $infobox_header_link, $skin_slice_set); } } //EOF: Advanced Cartbox Version Quote Link to comment Share on other sites More sharing options...
jsinp Posted October 31, 2005 Share Posted October 31, 2005 thanks to Beer monster for this great contrib It is much better then a standard shopping cart box. Makes it look more professional Quote Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2005 Share Posted November 1, 2005 Very good contribution, however I have a slight problem. I use a contribution to discount certain members, however this isn't working well with the cart. The total amount displayed in the box is correct, but on the price after the individual products the discount rate is applied twice. Not just two times, but say I have a discount of 10%, the price listed after a product is $price * 0.90 * 0.90 (= 0.81 * $price) instead of $price * 0.90. Any solutions? Quote Link to comment Share on other sites More sharing options...
Beer Monster Posted November 1, 2005 Author Share Posted November 1, 2005 Very good contribution, however I have a slight problem. I use a contribution to discount certain members, however this isn't working well with the cart. The total amount displayed in the box is correct, but on the price after the individual products the discount rate is applied twice. Not just two times, but say I have a discount of 10%, the price listed after a product is $price * 0.90 * 0.90 (= 0.81 * $price) instead of $price * 0.90. Any solutions? Which discount contribution are you using? Quote Light, in the absence of eyes, illuminates nothing. Link to comment Share on other sites More sharing options...
Guest Posted April 28, 2006 Share Posted April 28, 2006 hi. awsome contrib. my problem. i use STS 4.1 and after install this contrib i got SCRIPT errors i can not change the quantity also i can not delete items from the cartbox and the rollover-pictures are not working. Any solution for this problems ? bg Michael Quote Link to comment Share on other sites More sharing options...
Beer Monster Posted April 29, 2006 Author Share Posted April 29, 2006 hi. awsome contrib. my problem. i use STS 4.1 and after install this contrib i got SCRIPT errors i can not change the quantity also i can not delete items from the cartbox and the rollover-pictures are not working. Any solution for this problems ? bg Michael See my post re. STS on the previous page of this topic!! Quote Light, in the absence of eyes, illuminates nothing. Link to comment Share on other sites More sharing options...
djrino Posted July 9, 2006 Share Posted July 9, 2006 good contrib but i have installed and not work the increment product not work, and the remove not work. I have downloaded de last version when say that error is fixeb but not work. Any help is apreciated i runnin my oscommerce on localhost for test.. Many tnx Quote Link to comment Share on other sites More sharing options...
Beer Monster Posted July 17, 2006 Author Share Posted July 17, 2006 Have you installed a template contribution? good contrib but i have installed and not work the increment product not work, and the remove not work. I have downloaded de last version when say that error is fixeb but not work. Any help is apreciated i runnin my oscommerce on localhost for test.. Many tnx Quote Light, in the absence of eyes, illuminates nothing. Link to comment Share on other sites More sharing options...
darkdiamond Posted October 31, 2006 Share Posted October 31, 2006 Hi. Thank you Beer Monster for this hopeful contrib. I have a problem. Some user told me that when they pass from a category to another the trash empties. On my PC it perfectly works. I thought that maybe could be a problem related to cookies and security settings. The shop is www.valpanera.it/shop Any idea? Thanks Tommy Quote Link to comment Share on other sites More sharing options...
darkdiamond Posted November 1, 2006 Share Posted November 1, 2006 I resolved. It was an error about sessions. I put some buttons instead of the category menu, and I forgot to put in the link the session id, so everytime an user selected a category the session was empty and so was the cart. It's not a bug relting this very good contrib. It was an error made by my modifications. Thank you Tommy Quote Link to comment Share on other sites More sharing options...
comclusive Posted November 21, 2006 Share Posted November 21, 2006 Actually, it is the STS that's causing the problem! This is the first time I've seen STS and while it's impressive, I can't say I like what it does. Maybe if I understood it better..... Ok, here's how to fix it! At the top of includes/boxes/shopping_cart just above the first <script> tag add <tr> <td><table></table> and just below the <body onload..... tag remove <tr> <td> That's your javascript errors fixed! Now for the quantity box: The style for this needs to go in the includes\sts_templates\mysite\stylesheet.css file. Here is the style to add INPUT.quantitybox { border: 1px; border-style: solid; border-color: #000000; font-size: 12px; width: 20px; height: 22px; border-spacing: 0px; background: #F8f8f9; } You will have to ask Chardae nicely for the edit button though! Brian Interesting post this. It was the same symptoms that my site was displaying, the javascript non-working shopping_cart.php. I did exactly as stated here, and yes, it did work beautifully. BUT, after that, when I went to checkout, it stayed on checkout_shipping.php, and would just loop, not going to checkout_payment. ANy ideas on this one? I can't see why this should affect the checkout process, but when I put the standard cart box back, the system worked fine again. Quote Link to comment Share on other sites More sharing options...
scottman Posted December 22, 2006 Share Posted December 22, 2006 I have been using your excellent contribution and I have to say it is fantastic. It does exactly what I was looking for. However I have found that it does not work correctly when installed with Chemos Page Cache Class. The error occurs, of course, when users are not logged in and when they have items in their cart, and involves mulitple product listings in the cart.. Apon viewing shopping_cart.php, create_account.php, login.php, order_info.php (PWA), and various other pages, the items in the cart are shown twice. For example if you have 2 items then each of them is listed twice, all with quantities of one, the checkout button is also duplicated, giving a total of four items in the cart and two checkout buttons. I think this means that it must be all of the infobox contents is duplicated somwhere or displayed twice. Once this error is triggered by the pages mentioned above it persists until a user had created an account, logged in or reached checkout_shipping.php (PWA). On shopping_cart.php the quantity changes made in the central shopping cart module work fine, applying to all items, including the duplicates. They do not work from the cart infobox. Please could you help me out fixing this problem? Or point me to a forum post that will help out? I think this is a fantastic contribution and I badly want it operating on my store! Thanks a lot in advance, :thumbsup: Scottman Quote Link to comment Share on other sites More sharing options...
mediaweb Posted February 24, 2009 Share Posted February 24, 2009 Hi, Great contribution. But when installed, the quantity box is too large (see picture) How can i fix it ? Thanks for your help Quote Link to comment Share on other sites More sharing options...
leoneonekenobi Posted December 16, 2009 Share Posted December 16, 2009 hi this is a question for beer monster....i used your advanced cart box upload via oscommerce addons....now it works fine so far in safari..but the button-up and down shift position(to the left) in firefox when i click through the shop pages...how can i resolve this? i did add a float:left into my css but no joy. regards leoneonekenobi Quote Link to comment Share on other sites More sharing options...
marcianokent Posted January 20, 2010 Share Posted January 20, 2010 good contrib but i need help for this function function decrement(index) {if(document.forms["cart_box"].elements["cart_quantity[]"][index].value >3) { document.forms["cart_box"].elements["cart_quantity[]"][index].value-=3; document.cart_box.submit(); } } function increment(index) { document.forms["cart_box"].elements["cart_quantity[]"][index].value++; document.cart_box.submit(); } as you see in the "function decrement" of each of clicks, it decreases qty 3 (-3) and the function of each clicked incrementnya increases 1 (+1) Because I am not a programmer I need help to change the function of incrementnya into +3 Thanks before Quote Link to comment Share on other sites More sharing options...
designbysue Posted March 12, 2010 Share Posted March 12, 2010 Trying to install this and am getting an error message Fatal error: Class 'cartBox' not found in /services3/webpages/p/a/paintballwarehouseny.com/public/includes/boxes/shopping_cart.php on line 167 Can anyone tell me what I am missing? I have InfoBox Customizer which allows for customizing of the box through stylesheet. But I don't believe this is causing the problem because all that does is change the class for the styles. Would really appreciate any input - I have been going around for hours on this one. Thanks Sue Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.