Jump to content

techmistress

Member
  • Posts

    46
  • Joined

  • Last visited

Posts posted by techmistress

  1. Is it possible to manually change the stock level to zero in the admin? I had an off-site order and wanted to set the stock level via the admin myself, but it won't allow me to. The lowest that field or the warning field will go is 1.

    I'd like to be able to have it at zero and show it out of stock on the front end.

    Thanks!

  2. When the cart wants to warn you about something (like not choosing an option), where is the message located?

    I'm sure it's an issue with my template, but what is the div/item called so I can find or add it? Right now, the page moves to a location, but there is no message showing.

    Thanks!

  3. Yes, you can put a buy button for any product on any page.

    Simply use the following code:

    	<form action="" style="text-align:center;" method="post" name="prod#">
    
    	<input type="hidden" name="add" value="#" />
    
    	<input type="hidden" name="quan" value="1" />
    
    	<input type="image" class="cart_icon" src="YOURIMAGE.gif" alt="Buy Now" title="Buy Now" />
    
    	</form>

    Simply replace the # with the product ID and replace YOURIMAGE.gif with the location and name of your add to basket button image.

    Of course, if you're new to cubecart, this isn't necessary at all, since the shopping cart adds all of this on each product automatically. You simply add your categories and products, and the page with images and info and buy button is automatic.

    Hope this helps!

  4. I think there are 2 things that would cause this error:

    1. you don't have the correct permissions on your thumbs folder

    2. you've already deleted the files manually, so it can't clean them up for you since, they can't be found

    Either way, check the folder using FTP to see if the permissions are correct and if those files are actually in the folder.

  5. I am going crazy trying to figure out this problem... I double checked everything, and can't find an error.

    Here's the problem:

    I have a main category:

    "Learning Center"

    This cat has 5 subs:

    Solar

    Wind

    Hydro

    Geothermal

    How-To

    In my viewCat inc file, I have the following code:

    if($_GET[catId][cat_type] == 1) {
    
    $view_cat = new XTemplate ("content".CC_DS."viewArticleCat.tpl");
    
    	}else{
    
    $view_cat = new XTemplate ("content".CC_DS."viewCat.tpl");
    
    	}
    
    $view_cat->assign("LANG_DIR_LOC", $lang['viewCat']['location']);

    In the database the main cat and subcats all have a "cat_type" of 1, and the subs have the same father id, just the way it should be.

    Here's the weird thing - the new template comes up just fine with all of the cats except the first two (solar and wind) - they just keep using the regular template, even though their 'cat_type' is set to 1 just like the others, and their father id is the same as the others.

    I tried clearing the cache folder, and clearing/closing my browser but no luck.

    What would be doing this? I'm going crazy and PLEADING with someone to tell me what the problem might be...

    Thanks!

  6. Any idea why I might be seeing this error message when I go to my stats?

    Warning: imagepng() [function.imagepng]: Unable to open 'cache/978479575b49bb321991ee73218b0a89.png' for writing: Permission denied in /home/classes/gd/phplot.php on line 1437

    I've been having quite a few errors popping up today for some reason. I'm able to solve most but this one eludes me.

    First check to see if cache/978479575b49bb321991ee73218b0a89.png is in the cache folder. If it is not, then my guess would be that it's a folder permissions problem. That folder needs to have write permissions.

    :)

  7. I created a slightly different template for the ViewCat page if a specific category is selected.

    However, nothing changes.

    I put the following in my ViewCat.inc page, can someone tell me if I'm way off on my code?

    if($_GET['catId'][cat_father_id] == 7) {
    
    $view_cat = new XTemplate ("content".CC_DS."viewCat2.tpl");
    
    	}else{
    
    $view_cat = new XTemplate ("content".CC_DS."viewCat.tpl");
    
    	}

  8. Anyone know yet? I guess it's the same question as "how do I make the comments box required". I tried looking through the forums everywhere and only saw an answer saying to look for a javascript - which I couldn't get to work because of the reason above...

  9. Hi All!

    Hope someone can help..

    I've added 3 new fields at step 5 of checkout (below comments section). I would like to make them required, but I'm not sure of the code. I tried the if empty code, but nothing happened. I don't need it to focus on the fields, but popup an alert message.

    I know how to do a javascript field check, but I wasn't sure how to do it without an "onsubmit" function. The button on this page is "a href="java script:submitDoc('gateway');" with an image.

    Thanks for any help!

  10. Here's the situation:

    We're using Authorize (SIM).

    The client demands that we pass along what card type they are using (this isn't chosen until after they leave the store at the authorize site).

    We thought a good solution would be this:

    Duplicate the Authorize gateway (authorize_visa, authorize_mastercard, authorize_amex)

    Then the customer chooses which "card"

    Then our client gets the card type info they want

    My Question.....

    Can I put the same Relay Response URL for all three? (eg: http://www.mystore.com/modules/gateway/Aut.../confirmed.php)

    I think I would need to have only one url, since I put that url into the authorize interface.

    Anyone???

    Help a gurl out???

    Pleeeze?

  11. Everytime I attempt to add a hyperlink via FCKeditor (v2.0 FC, preloaded with CC 3.0.15) to the Homepage, the URL changes in the Source code from the standard <a href="...> to include a \&quot; inside the double quotes on either side of the URL as follows:

    <a href="http://newslookagifthorse.blogspot.com">newslookagifthorse.blogspot.com</a>

    changes to:

    <a href="\&quot;http://newslookagifthorse.blogspot.com\&quot;">newslookagifthorse.blogspot.com</a>

    If I upload the modified page, when you click on the hyperlink, it bombs because it then includes the URL of the store in front and /%22's on either side as demonstrated below:

    http://www.lookagifthorse.com/%22http://ne...logspot.com/%22

    I am sure this has something to do with a configuration file either in the FCKeditor itself or globally?? I have tried both typing in the URL and also via cut /paste to no avail.

    Can anyone explain how to fix this? :P

    Thanks!

    The \&quot; is the symbol for ". It looks like it is a setting in the editor.

    Try one of the following:

    Use single quotes

    Try putting a \ before the double quotes

    Try using none at all.

    One of those should work!

  12. I've added a new field to the order_sum table that is an auto-incrementing field, automatically created when a new order is placed.

    Is it possible to pass this number to the confirmation email, or is it too "soon" at that point? I know in the gateway inc file, there is the code to create the order_id, but of course the new field is probably not generated until post?

    I was hoping someone could help me sort it out... and let me know if it's even possible.

    The new field is "invoice_no", a clean, 4-digit sequential number.

    Oh Thank you anyone!

  13. Of course it isn't working quite as I wanted!

    In the admin, when viewing a particular order, I want to add a section that says:

    "Other orders by this Customer" and list all of the orders associated with the customer who made this particular order.

    I used the below code, but it shows all of the orders in the database. Who can figure it out for me?

    Please, please, pleeeaaase? :whistle::pirate::P Yaaaay, thanks!!

    <td colspan="2" class="copyText">
    
    <?php 
    
    $orders = $db->select("SELECT CubeCart_order_sum.customer_id, CubeCart_order_sum.status, CubeCart_order_sum.cart_order_id, CubeCart_order_sum.time, CubeCart_order_inv.cart_order_id FROM CubeCart_order_sum, CubeCart_order_inv WHERE CubeCart_order_sum.cart_order_id = CubeCart_order_inv.cart_order_id ORDER BY `time` DESC");
    
    if($orders == TRUE){
    
    for($i=0; $i<count($orders);$i++){
    
    ?>
    
    	
    
    		<a href="order.php?cart_order_id=<?php echo $orders[$i]['cart_order_id']; ?>" class="txtLink"><?php echo $orders[$i]['cart_order_id']; ?></a> |  
    
    
    
      <?php 
    
    		}
    
    		
    
    	} else {
    
    ?>
    
    		No Other Orders
    
      <?php 	
    
    	}
    
    ?>
    
    </td>

×
×
  • Create New...