Jump to content

bsmither

Member
  • Posts

    17,989
  • Joined

  • Last visited

  • Days Won

    603

Everything posted by bsmither

  1. PHP and MySQL are notoriously case-sensitive. I see your links have: act=viewProd&productID=6 where the query string is looking for where productId = ".$db->mySQLSafe($_GET['productId'] I'm going to suggest that the foreign links into your store have 'Id' and not 'ID'. See what happens then.
  2. You'll have to google for Kobet's store (forum policies or some such).
  3. CC's skin templates can be customized to whatever, and placeholders to put whatever kind of information in them are many and varied. But there still must be code to fill the placeholders. Now, seeing that these templates are essentially HTML code, you can put hard-coded HTML where you need it. If you do not want the users of your skins to have to change the php coding, perhaps you can let them change the HTML in your skin.
  4. Are you the pizza guy? I read of this plan some time ago! Anyway, I think the Email Template System by Alon Kobets may help. I've installed this and I now have a wide variety of e-mail templates I can create and "activate" on certain events of activity in the store.
  5. Somewhere in your skin, you've made a syntax error. The first thing I see is that you have a </div class=colleft> tag. It's right after the Search form and before the "Welcome Guest". Right when a mod from MarksCarts (Extra Content Box) begins, there's an <s> tag that probably shouldn't be there.
  6. From what I get in your description of the process, when your customer comes back from paypal, what does he care about seeing his comments again, and so what if he does. Those comments are now viewable in the Admin, Order Detail page, Customer Contents (well, may have to do some exploring on that) as well as the e-mail sent to the store owner (admin e-mail). What do you want to happen after returning from paypal? Offer yet another opportunity to leave comments? After returning from paypal, I think the next page displayed is: \includes\content\confirmed.inc.php
  7. Two options as I see it: 1. Copy all your product images into your thumbs folder, renaming each by prepending "thumb_" to the filename. This will probably affect your entire store. 2. Find in file: \includes\content\viewCat.inc.php, the lines: if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$productResults[$i]['image'])){ $view_cat->assign("SRC_PROD_THUMB" ... } else { $view_cat->assign("SRC_PROD_THUMB" ... } and change it to: if(file_exists($GLOBALS['rootDir']."/images/uploads/".$productResults[$i]['image'])){ ... images/uploads/".$productResults[$i]['image']); } else { ... } Where I have "...", this means "more code here" and/or "leave this alone". I think you can figure it out.
  8. In the file: \includes\content\gateway.inc.php, look for near the end: $gateway->assign("LANG_COMMENTS" ... and $gateway->assign("VAL_CUSTOMER_COMMENTS" ... You will be adding your programming to feed the additional response elements here. Then find: $orderSum['customer_comments'] ... and $cart->setVar($_POST['customer_comments'] ... and $comments = $_POST['customer_comments'] ... in the admin e-mail section. You will need to deal with the additional form responses here as well. In the file: \skins\your_skin\styleTemplates\content\gateway.tpl, look for: <td colspan="2"><textarea name="customer_comments" ... You will be adding your HTML for more form elements here. Let us know how it turns out!
  9. Ah! So, in addition to the Customer Comments field mentioned above, you are wanting a customized checkout system that allows you to switch on/off a set of additional response elements (text field, checkboxes, radio buttons, drop-downs, etc). One of these might be adapted to your needs: Testimonial/Store rating mod (Free) http://www.cubecartforums.org/index.php?showtopic=2109 Testimonial and Store rating Mod (Updated - not free - CCv4) http://www.cubecartforums.org/index.php?showtopic=2866 Poll Manager http://www.cubecartforums.org/index.php?showtopic=3164 http://www.cubecartforums.org/index.php?showtopic=2599
  10. Does not the suggestion given to you yesterday (visit Estelle's) work for you?
  11. By my estimation, no. The list is presented to you as the return from a "walk_dir" function. That function simply asks PHP repeatedly to ask the operating system for the next file in the folder. It's the operating system's default behavior as to what order each directory entry is returned - usually alphabetical for Windows. And that's how the list is returned to me. If the most recently uploaded pictures appear at the bottom of your list, then either it's a coincidence that the most recently upload pictures are alphabetically sequential to what's already there, or *nix systems do not sort the directory. If your OS does not sort on a default method, then we can add a function to reverse the array returned. In the file: \admin\products\extraImgs.php at about line 113, add after it: $dirArray = array_reverse($dirArray); So, either the latest uploaded files will be listed first, or the bottom of the alphabet will be listed first.
  12. Backup the following two files before making any changes. Well, to start with, we need to add a new statement and modify the database query to the \includes\content\viewOrders.inc.php file, and add a new table column to the \skins\Your_Skin\styleTemplates\content\viewOrders.tpl file. The database query just grabs a few fields from each record from the order_sum table that pertain to the customer's ID number. None of these fields are the product's name - and the product name is not stored in this table anyway. So, we need to join the table that has the Product name into the query and pull only relevant records. So, at about line 42, change: "SELECT status, cart_order_id, time FROM ".$glob['dbprefix']."CubeCart_order_sum WHERE customer_id = ".$db->mySQLsafe($ccUserData[0]['customer_id'])." ORDER BY `time` DESC" to: "SELECT status, os.cart_order_id, oi.name, time FROM ".$glob['dbprefix']."CubeCart_order_sum os LEFT JOIN ".$glob['dbprefix']."CubeCart_order_inv oi ON os.cart_order_id = oi.cart_order_id WHERE customer_id = ".$db->mySQLsafe($ccUserData[0]['customer_id'])." ORDER BY `time` DESC" Now that we have the product's name, we need to feed it into a viewOrders placeholder. After the line: $view_orders->assign("LANG_ORDER_NO"... add this line: $view_orders->assign("LANG_PRODUCT_NAME","Product Name"); You would think we would need to do something at about line 60, but we don't. In viewOrders.tpl, we need to add a new column to hold the product name. For the column heading, after the line: <td class="tdcartTitle">{LANG_ORDER_NO}</td> add this line: <td class="tdcartTitle">{LANG_PRODUCT_NAME}</td> For the column data, after the line: <td class="{TD_CART_CLASS}"><a href... add this line: <td class="{TD_CART_CLASS}">{DATA.name}</td> Save your changes and see what happens. (I have not done this myself.)
  13. Goober has a show/hide per category mod, "Advanced Discount Groups". In order for a visitor to be identified as a member of any specific group, that visitor must be logged in. See it at: http://www.cubecartforums.org/index.php?showtopic=30 Be sure to visit his site and submit a ticket in his helpdesk system. Before you buy anything, ask him if he's got anything similar on a per product basis.
  14. Estelle's got something that might work for you. See it at http://www.cubecartforums.org/index.php?showtopic=399 Be sure to look at everything she has as there may be another similar product that does more or does the same a slightly different way.
  15. I still have no answer to the missing images, but... By "the basket under halsband", are you refering to the Varukorg content box? It's in the third column at the top - where I believe it should be. I do not see anything else that looks like a basket. OK, now I see what's going on. If IE cannot display a picture, it shows a red-x followed by the alt text and does not wrap. About halfway down the page is a "Memory Wire" product that forces the width of the table to be too large, forcing the content box to be where it can only fit - below the table. The immediate work-around is to use short 3-4 word product titles. I think this one product is the only one in this category that has an overly-long name. In IE, on the menu bar, click View, Text Size, Smaller. You will see that the problem in Halsband goes away, but is still there in Salda. The best fix is to figure out why some images are not being shown. (You have not said if you see missing images.) All of the missing images have native language letters in the filename. Try renaming any and all image filenames to have just the non-unicode character set. Don't forget the thumbnail versions as well. I believe this may be an unforseen consequence of CC's use of CSS floats and IE's not holding the CSS width value for this container while showing the alt text in the red-x placeholder.
  16. Other than a few thumbnails not being rendered in IE6, it looks fine. Anything in particular we should be looking for?
  17. In the thread: http://forums.cubecart.com/index.php?showtopic=29294, I made a guess about CC-managed downloads timing out. Is your store on a slow outbound pipe?
  18. Almost every bit of wording is taken from your language file: /language/??/lang.inc.php It's a large file, so I would use your text editor's Search to find the phrase you are looking for.
  19. The line should now be: $send = $mail->send($config['masterEmail'], $config['mailMethod']); How did your original line read and how does it read now? If that still doesn't work, try: $send = $mail->send(array($config['masterEmail']), $config['mailMethod']);
  20. OK, well, since the person who wrote the skin is the only one who knows where in the code these dimensions are located, you should really try contacting the writer.
  21. Now I see that you are using the SEO mod. My comments above about the code may or may not still apply.
  22. I'm not finding in any of the standard templates hard-coded image dimensions. Which skin are you using? Is it a custom skin?
  23. If it stays on the same page - like even the page never refreshed - as if you were clicking on nothing at all, then they may have javascript turned off or some security add-on is muffing with the page's javascript. Or they may have some cookie-blocker, or identity obliterator, or working through a really weird proxy at their school or business.
  24. So what specifically is not working? Are those who cannot add products to their cart not getting any action (new page, etc) when they click on the BUY button? Do they get to a different page but the indications in the shopping basket box along the left side are not getting updated? Do they get an error message that says, "You cannot add products to the basket."?
  25. In the file: \admin\products\index.php, at about line 284, change: $orderBy = $glob['dbprefix']."CubeCart_inventory.productId ASC"; to: $orderBy = $glob['dbprefix']."CubeCart_inventory.productId DESC";
×
×
  • Create New...