Jump to content

Spechal

Member
  • Posts

    143
  • Joined

  • Last visited

Everything posted by Spechal

  1. Is there a module/plugin cache? I seem to be getting the same page over and over despite changing the underlying text in the code. I deleted the files in the cache directory to no avail. I am not running APC or anything and nginx has sendfile set to off. Also, any docs on module development (other than the hooks article) or do we go with trial and error based off other modules? Thanks!
  2. I used CC back in the v3 days and it was great for what I needed. These days, there is no shipping out of the box. You have to figure out how to get it all working. On top of that, nothing really works together well or fits nicely within what the titles describe. I don't mean to rant, more so offer assistance if interested. I am going to use a real life scenario, if it can be solved by a combination of existing modules, I retract everything I've said sans the figuring out how to setup shipping part. Let's say I want to sell coins. Raw and graded coins. I also don't trust anyone but USPS. To save everyone money, I will send US Priority and Flat Rate boxes. For security, if the purchase if over X dollars, then registered mail is required. Module breakdown: Per Item - Won't work, but promising. If someone buys 3 x graded coins, it will fit into a smaller package and go US Priority. If they order 4 to 8, Small Flat Rate, etc... If they order raw coins, the space required is much smaller and I can fit probably 10 into a smaller package. If shipping could be broken into specifying a price at an item by item level, it may work. By Weight - Won't work. Raw coins weight almost nothing but take up space within the package. Same issue as above. By Price - I may not fully understand this, but it didn't seem to work when testing the aforementioned scenario. All In One - This is the closest needed and I am thinking about extending it. What I really need is a shipping tab on the product page to specify overrides for global defaults. It can be abstracted out to a set of shipping options or case size options (maybe just a lookup table) and a builder tool. Something like some words and drop downs or text autofills ... Product -> Shipping Item Shipping Cost: $XX Items that fit in case: X Special Requirements: - Signature Required (Registered Mail) Then I test my scenario: Client purchases 10 raw coins and 3 graded coins. Raw coins are set a 10 per case and shipping at $2.95 for US Priority Mail. Graded coins have two per case. Which bumps it to the next size, Small Flat Rate. Success? Yes, but how did it know that 10 raw and 2 graded fit? This would introduce a dimensions aspect, which doesn't appear to exist. Why? Client purchases 21 raw coins. We have raw coins at 10 per case so we need 3 cases. That bumps it up to Medium. Success? Yes, but how did it know? The system would need to know how many of each item type can fit in each case size OR case sizes could be introduced in which they know how many of which item type can fit into a case. However, we don't have product dimension support nor a shipping module with a concept of shipping based on dimensions or cases that are multiples of the same size (i.e. 1 cubic foot, 2 cubic feet, etc...). Production options didn't seem helpful either, but again I may not be using them correctly. I did't see them get into the product/shipping level either. I don't see much that does get to the product level in regard to shipping. This could all be just too specific to be and either needs abstracted out a bit more or I would just have to run with it for my own use ... it also turned into a brain dump. Again, I don't mean to complain and do nothing about it. I would like to help. I am not the best but am PHP ZCE certified and have been doing this for like 15 years. Thoughts appreciated.
  3. Thanks anyways, but I'll write my own. :homestar:
  4. Do we have to hack CC to get real per item shipping again? i.e. I want Router A to be $4 shipping and Router B to be $6. Is it possible?
  5. Look at your database. If you see tables like this: "store_inventory, store_config" then you DO NOT HAVE A PREFIX. If you see something like: "cubecartstore_inventory, cubecartstore_config" then YOUR PREFIX IS cubecart Your prefix is all characters coming before "store_"
  6. Snakeking Line 436 should be: //select highest per_ship or per_int_ship and multiply item_ship or item_int_ship You have select highest per_ship or per_int_ship and multiply item_ship or item_int_ship
  7. File Name :: 1 day calendar Author :: Spechal Category :: Minor Description :: This mod was done after the javascript calendar mod. This one uses FAR less code (about 70 lines less). It also does NOT use javascript. It is simple to install and should take you about 3 minutes.<br><br>Enjoy.<br><br>*updated to reflect full month name and date extentions* *and day without leading zeros* Updated Sat, Apr 2 2005 8:57 am View File
  8. Should be in the admin folder. If you dont have one, here is the core file. <?php /*************************************************************************** * File Info: admin/image.php * Purpose: Display Image * Updated: 31/07/2003 **************************************************************************** * Developer: Alistar Brookbanks (Brooky.com) * Copyright: (C)2003 http://www.brooky.com * Copyright: (C)2003 http://www.cubecart.com * This program is not "free" software and restrictions apply! * Further Info: http://www.cubecart.com/license.php * Contact [email protected] if any conditions are not clear. * * Licensees holding valid "CubeCart Licence Number" may edit * the (powered by CubeCart) from browser title and "Powered by CubeCart" * and "(c) Brooky.com" from the web page footer. * * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE. This and all others in the download package can only be * redistributed with written permission from Alistair Brookbanks! * * The "CubeCart License" is available to purchase at * https://secure.cubecart.com/ * For pricing please contact us via e-mail at [email protected] ***************************************************************************/ include("config.php"); include("settings.inc.php");?> <html> <head> <title> <? echo"$image"; ?></title> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'> <link rel='stylesheet' href='style.css' type='text/css'> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <? echo "<table align='center' valign=\"top\" width='100%' height='100%'><tr><td align='center' valign='middle'><img src='../images/$image'><p>$image</p><p><a href = \"javascript:window.close()\">$la_window_close</a></p></td></tr></table> "; ?> </body> <html>
  9. http://www.cubecart.com/site/forums/index.php?showtopic=2495
  10. That error means your trying to divide something that is either zero or non-exsistant. In your case, non-exsistant. Please verify that you put the lines in the correct places, because your not placing the added code to the line just before $total_ship.
  11. I assume you have the free_shipping mod installed. I assume that by the error you got, refer the the first post of this page, made by me, that says: Do that.
  12. It would apply the cart no matter the payment gateway. You would need a custom mod done, I dont think anyone has written one of this kinda anyways.
  13. Glad you got it fixed, but did you see my post at the top of page 3 in this thread? It says to put it directly before the code, like you just did.
  14. Get the free ship mod. When it comes time to modify order.php Just make sure to place this code: if($free_ship=="Y"){ if($cart_total>=$freeshipamount) {$total_ship="0.00";} } Directly before $total_ship = sprintf("%.2f", $total_ship); $pre_total_tax = sprintf("%.2f", $pre_total_tax); $payable = sprintf("%.2f", $payable);
  15. Simon, yes you can. Just about anything is possible with PHP. :D
  16. Here are my META tags. I will break them down in a moment. <html> <head> <title>Spechal dot Com Web Site Development and Design for less from Kansas City.</title> <META NAME="Keywords" CONTENT="Kansas City Web Development, Spechal Developments, Spechal, Travis Crowder, PHP Web Design, Web Development, Cheap Web Site, Kansas City Web Site Design, MySQL Database Design"> <META NAME="Description" CONTENT="Kansas City Web Design by Spechal Developments. Spechal Developments offers affordable website design while keeping development time low."> <META NAME="Author" CONTENT="[email protected]"> <meta name="robots" content="index, follow"> </head> Alrighty. META tags are ALWAYS placed the the < head > tags. Usually right after the opening < head > tag. Never in the body or after the head tags, always after the html and head tags. Title: Well...That's the title of your page and also what the search engine is going to show your link as. Keywords: Words or phrase that you think people would search for (not really used anymore) Description: That's what the search engines going to show as a description for your website. Author: Who made it. Robots: Tells the search engine to index the page or not (noindex) also letting it know if it should follow the links in the page to index others or not (nofollow). There are others (i.e. Revisit After, Cache-Control, Distribution, etc...) but that's really all you need. Hope that helps.
  17. Um...that was my fault on your commenting out code on that page. I had a typo in there. I wanted you to post your code up in here and put a note next to line 158 to let us know which line it was. Put up (in the forum) lines 20 before the error line, and 20 after.
  18. Post up your order.php code and put a not next to the line it says there is an error on.
  19. Nice site. Debera, I posted a thread on how to do that some where around here. Just do a search for "users online".
  20. I found out why the upload of a new image in edit_product.php always fails, says it is too big, and adds info to the DB but doesn't upload file. Enjoy the fix. About line 258 find this if ($userfile2_size>$max_size) { echo "<p align=\"center\">$la_too_big</p>\n"; exit; } Replace it with this: if ($userfile2_size>$max_size2) { echo "<p align=\"center\">$la_too_big</p>\n"; exit; } About line 264 find this: if (file_exists($path . $userfile2_name)) { echo "<p align=\"center\">$la_used_already</p><br>\n" ;$escape2=1; } Â if($escape2!=1){ Â $res2 = move_uploaded_file($userfile2, $path . $userfile2_name);} Â Â if($escape2=1){$res2="continue";} Â // Resultant output Replace it with this: if (file_exists($path2 . $userfile2_name)) { echo "<p align=\"center\">$la_used_already</p><br>\n" ;$escape2=1; } Â if($escape2!=1){ Â $res2 = move_uploaded_file($userfile2, $path2 . $userfile2_name);} Â Â if($escape2=1){$res2="continue";} Â // Resultant output
  21. This calculation isn't really for either. It is just to make shipping 21% of the total order, instead of calculating shipping based on wieght.
  22. Find in order.php about line 451 $total_ship = $total_per_item + $max_per_ship; Replace with $total_ship = ($cart_total * .21); //sets order shipping to 21% of cart total
  23. I didnt call you a newbie, so there is no need to start flaming. What's your problem?
×
×
  • Create New...