Jump to content

Spechal

Member
  • Posts

    143
  • Joined

  • Last visited

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

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

  5. 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:

    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);

    Do that.

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

  7. 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. :D

    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

×
×
  • Create New...