Jump to content

PDMP Webmaster

Member
  • Posts

    21
  • Joined

  • Last visited

Everything posted by PDMP Webmaster

  1. Well, this is quite the coincidence: I just heard back from someone on another forum, after no activity there for a week or two, and it seems to be working. Please disregard this thread. I would post the edits he made except I don't know what he did; I gave him two files, and he sent them back to me.
  2. My store is at http://www.pdmpantiqueprints.com/store/. When someone goes to buy something, before they've put in their information, under Tax it'll fill in Virginia state sales tax by default. I believe it's b/c the store is located in VA. Once you input your info, if you're shipping outside of VA then the tax goes away, which is fine. However, does anyone know how to make it default to 0? I believe the following code from /includes/content/cart.inc.php needs editing: /* START IMPROVED FUNCTIONALITY TO CALC TAX ON STORE LOCALE IF CUSTOMER IS UNKNOWN */ $configCounty = $db->select('SELECT `name`, `abbrev` FROM '.$glob['dbprefix'].'CubeCart_iso_counties WHERE `id` = '.$db->mySQLSafe($config['siteCounty'])); $countyInvName = !empty($cc_session->ccUserData['county']) ? $cc_session->ccUserData['county'] : $configCounty[0]['name']; $countryInvId = !empty($cc_session->ccUserData['country']) ? $cc_session->ccUserData['country'] : $config['siteCountry']; $query = 'SELECT `id` FROM '.$glob['dbprefix'].'CubeCart_iso_counties WHERE `name` = '.$db->mySQLSafe($countyInvName).' AND `countryId` = '.$db->MySQLSafe($countryInvId); $countyInv = $db->select($query); $countyDelName = !empty($basket['delInf']['county']) ? $basket['delInf']['county'] : $configCounty[0]['name']; $countyDelAbbr = !empty($basket['delInf']['county']) ? $basket['delInf']['county'] : $configCounty[0]['abbrev']; $countryDelId = !empty($basket['delInf']['country']) ? $basket['delInf']['country'] : $config['siteCountry']; $query = 'SELECT `id` FROM '.$glob['dbprefix'].'CubeCart_iso_counties WHERE (`abbrev` = '.$db->MySQLSafe($countyDelAbbr).' OR `name` = '.$db->MySQLSafe($countyDelName).') AND `countryId` = '.$db->MySQLSafe($countryDelId); $countyDel = $db->select($query); /* END IMPROVED FUNCTIONALITY TO CALC TAX ON STORE LOCALE IF CUSTOMER IS UNKNOWN */ I tried putting a "/*" towards the beginning to negate the whole block of code, but that caused it to not charge sales tax even after inputting my address as a customer. I'm running v4 by the way.
  3. Lee, Thanks as always! Sorry for the late reply. It's been so long since I've done this I forgot to click 'Watch Topic' so as to get an e-mail notification in case of a reply. Josh
  4. Hello all, Please see a product from my customer's site here. He wants the line at the top, 'Location: ...1931' to be enlarged and space added at the top and bottom of it to separate it from the picture below and the product name above it. I was fooling around with 'viewprod.tpl' in 'myskin/styleTemplates/content' and was able to change the size of all the text on the page, but not just the one line. Am I messing with the wrong file? My guess is I simply don't know how to properly insert code to modify the text properties. Any help would be appreciated. Thanks! Josh
  5. Hello all, Please see a product from my customer's site here. He wants the line at the top, 'Location: ...1931' to be enlarged and space added at the top and bottom of it to separate it from the picture below and the product name above it. I was fooling around with 'viewprod.tpl' in 'myskin/styleTemplates/content' but to no avail. Am I messing with the wrong file? My guess is I simply don't know how to properly insert code to modify the text properties. Any help would be appreciated. Thanks! Josh
  6. Jason, Thanks for replying to my post. I've done exactly what you said but it didn't work. Before purchasing the full version of CubeCart and installing it on my customer's web site, I first installed the trial version on my web site and was able to get "Apache RewriteRule" working, so I think it's simply a difference in hosting companies, not operator error. On my customer's web site when I had the lines from the Admin module in my .htaccess with "Apache RewriteRule" enabled, I got a 404 Not Found error whenever clicking on a product, so per the admin module's instructions I switched to Lookback, which works but causes the next page error. If you have any further suggestions as to how to get Rewrite working I am certainly all ears. -Josh
  7. Seeing as when you posted this, I figure this is a long shot to get a reply, but figured I'd try. Please see a separate post of mine below; I've copied it here for your convenience. I just tried your suggestion with 'functions.in.php' but to no avail, so I changed it back for the time being. If you have any suggestions they'd be greatly appreciated. Please see my customer's store here. I currently have it set to display 1,000 products per page, but previously when it was set to 10 products per page, the next page link would take me back to the homepage. I've seen other threads where the next page link would cause the current page to refresh, but that's not what I experienced. It does seem to be a problem with the search engine friendly URL thing, since when I turned that off it did work. When I tried the "Apache RewriteRule" option I got a 'Page not found' error when clicking on a product, so I've been using "Apache directory 'lookback'", which works but seems to be causing a problem with the next page link. In case this helps, my .htaccess just has the following line: AddType x-mapp-php5 .php .php4 Which if I remember correctly was from the hosting company to make it PHP5.x instead of 4.x, which was giving me trouble when I first installed this thing (that was a few months ago). I tried adding the text CubeCart gives you for the "Apache RewriteRule" option even while using "Apache directory 'lookback'" but that didn't work (I saw that in another thread). I'm running CubeCart 4.4.2. If you'd like me to set it to 10 products per page for you to test it out, let me know and I'll let my customer know. -Josh
  8. Hello again Lee, Thanks as always for helping me out. I've never done an upgrade before and am a bit weary, given the possibility of introducing a new bug, having a new problem come up, etc. However, what I did do is download the new version, take just the one file 'includes\content\viewCat.inc.php', and replaced the old one with it, but noticed no difference in running my test searches. Since I was worried about something else going wrong, I put the old one back in there, but can put the new one back if you'd like to do some of your own testing. For an upgrade to work do I need to put all the new files up? I'm guessing not, since it seems it's just a maintenance release that mostly fixes this and that without overhauling anything. Any other ideas for me to try? -Josh
  9. Hi all, Please see my customer's store here. He recently started adding products and was testing the search function when he noticed some funny things, so he asked me to look into it. It seems the search function has trouble with non-alphanumeric characters, which isn't such a big deal. I've seen previous threads where words with a character length less than 4 gave errors, but that seems to be corrected (I'm running v4.4.2) for the most part, though I'll return to that in a bit. I've also seen threads regarding a MySQL error, which I haven't had come up. What I find really bizarre is that the search string 'plate 23 audubon' returns a hit, but 'audubon plate 23' does not. This is quite an issue, since as a store selling antique prints, it would be very conceivable for someone to come in and search 'audubon' to find prints by that artist. Eventually there'll be a few hundred Audubon's in there, so it'd be reasonable if say a collector comes by, to narrow the search by expanding it to 'audubon plate 23'. If nothing comes up, the customer will conclude we don't have it and move on, probably not thinking to try 'plate 23' or 'plate 23 audubon' instead. Any ideas why this may be happening, and any potential solutions? Here's another weird thing: I search for 'birds of america', and I get hits. I expand to 'birds of america royal', and I get hits. 'birds of america royal octavo', still fine. 'birds of america royal octavo edition', no problem. 'birds of america royal octavo edition audubon', still ok. ' birds of america royal octavo edition audubon artist', and suddenly I get no hits. I tried removing 'of', so I search for 'birds america royal octavo edition audubon artist', and that works, so I'm thinking either it's a wordcount threshold or an error with a two character word. To test the former, I search 'birds america royal octavo edition audubon artist buzzard', and that works, so it doesn't seem to be a maximum wordcount issue. Why would a two letter word cause a problem there, but not by itself or earlier? I really don't get it. I have a good idea of which fields are indexed upon entering products, so my understanding of a database is that typically all words (minus certain exclusions, such as special characters, 'a', 'the', etc.) within those fields would be added to an index, or dictionary, and that when a search string is entered it queries that file. What could be causing the above errors? We're hoping not to have to put some sort of message in bold on the homepage letting customers know the search function has a mind of its own and to try a myriad of search string combinations before concluding we don't carry something. Anyway, if you have any suggestions I'm all ears. Hopefully the above doesn't sound like some tirade, I'm calm and collected, just rather confused. -Josh
  10. Hi all, Please see my customer's store here. I currently have it set to display 1,000 products per page, but previously when it was set to 10 products per page, when I entered the 11th print for a category, the next page link would take me back to the homepage. I've seen other threads where the next page link would cause the current page to refresh, but that's not what I experienced. It does seem to be a problem with the search engine friendly URL thing, since when I turned that off it did work. When I tried the "Apache RewriteRule" option I got a 'Page not found' error when clicking on a product, so I've been using "Apache directory 'lookback'", which works but seems to be causing a problem with the next page link. In case this helps, my .htaccess just has the following line: AddType x-mapp-php5 .php .php4 Which if I remember correctly was from the hosting company to make it PHP5.x instead of 4.x, which was giving me trouble when I first installed this thing (that was a few months ago). I tried adding the text CubeCart gives you for the "Apache RewriteRule" option even while using "Apache directory 'lookback'" but that didn't work (I saw that in another thread). I'm running CubeCart 4.4.2. If you'd like me to set it to 10 products per page for you to test it out, let me know and I'll let my customer know. -Josh
  11. Lee, Perfect!! That did it. As usual, thanks so much for your help. -Josh
  12. Hi all, I'm not sure if this should be in the Payment or Shipping section, so I'm posting in both. Please see my customer's store here: http://www.pdmpantiqueprints.com/store/. If you read the Terms & Conditions, you'll see that we charge an $8.95 (shipping &) handling flat fee for domestic (USA) or international shipments, however for shipments outside the 48 contiguous states the actual shipping fee will be COD with the $8.95 only covering packaging. Naturally, the concern is that a customer outside the 48 contiguous states makes a purchase, checks the box saying "Yes I read and agree to the Terms & Conditions" without actually reading it, thinks they're only paying $8.95 for S&H, then the shipper arrives at their door with a bill that could include, besides shipping, customs, taxes, and other fees. What I'd like is a mod that, in the event of a customer's delivery address being outside the 48 contiguous states, causes a popup to appear stating something to the effect of "Did you REALLY read the Terms & Conditions? Because there will be a COD shipping fee besides the $8.95 that you pay online. If you'd like us to look into the exact cost for your address, please feel free to contact us". I'd like the text both in the title of the window as well as the body of the window to be editable (it doesn't have to be accessible via the admin module, manually editing a text file that I then ftp to the web server is fine). I've posted this request to the "Hire a Developer" forum too, so if you're a commercial contributor feel free to quote me a price. -Josh
  13. Hi all, I'm not sure if this should be in the Payment or Shipping section, so I'm posting in both. Please see my customer's store here: http://www.pdmpantiqueprints.com/store/. If you read the Terms & Conditions, you'll see that we charge an $8.95 (shipping &) handling flat fee for domestic (USA) or international shipments, however for shipments outside the 48 contiguous states the actual shipping fee will be COD with the $8.95 only covering packaging. Naturally, the concern is that a customer outside the 48 contiguous states makes a purchase, checks the box saying "Yes I read and agree to the Terms & Conditions" without actually reading it, thinks they're only paying $8.95 for S&H, then the shipper arrives at their door with a bill that could include, besides shipping, customs, taxes, and other fees. What I'd like is a mod that, in the event of a customer's delivery address being outside the 48 contiguous states, causes a popup to appear stating something to the effect of "Did you REALLY read the Terms & Conditions? Because there will be a COD shipping fee besides the $8.95 that you pay online. If you'd like us to look into the exact cost for your address, please feel free to contact us". I'd like the text both in the title of the window as well as the body of the window to be editable (it doesn't have to be accessible via the admin module, manually editing a text file that I then ftp to the web server is fine). I've posted this request to the "Hire a Developer" forum too, so if you're a commercial contributor feel free to quote me a price. -Josh
  14. Hi all, Please see the "By Subject" category of my customer's web site: http://www.pdmpantiqueprints.com/store/index.php/by-subject/c_30.html. It's got a bunch of subcats, and you'll see some lines start at around halfway through the page instead of starting at the left, where they should. I was reading through some articles I found on this forum and tried adding "height: 120 px;", "height: 200 px;", "margin-top: 100 px;" to both the #subcat and .subcat sections of the layout.css, but to no avail. Anyone have any ideas? -Josh
  15. Lee, I've said it before and I'll say it again: you are THE MAN!! I just figured out why it wasn't working for new products I was adding: I was forgetting to change the category from Test Category, and since I can't delete that thing I have it hidden, so of course when I changed it to Yes it didn't show up! Arrgh!!! By the way, are you a Commercial Contributor? I've put a request for a simple shipping mod at http://www.cubecartforums.org/index.php?showtopic=14255. Are you capable of that sort of programming? -Josh
  16. Lee, Good to hear from you again. Unfortunately, I haven't been able to get that to work. I tried copying and pasting your new text to replace those lines, but all that did was cause there to be no options under "Include in latest prods". I tried that twice. Then I tried flipping the two main lines' position, i.e. I cut the bottom one and pasted it over the top one, but that didn't work either. While it showed "No" by default, clicking "Yes" produced no effect. Then I tried editing the two lines so that wherever they differed (i.e. if one line had a '1' while the other had a '0') I switched them out. That also showed "No" by default, but clicking "Yes" produced no effect. Now despite reverting back to my original, backed-up 'index.inc.php', the "Include in latest prods" dropdown only works for prods already entered into the store, and doesn't work for new ones. Any ideas on what's going on with CubeCart? -Josh
  17. Hi all, I'm not sure if this would be the right forum to post to, but here goes. When adding new products, my customer wants the 'Include in latest products in homepage?' option to default to 'No'. Anyone know how to go about doing this? -Josh
  18. Lee, You are THE MAN!! Thanks for your help. Bits4Vits, also want to say thanks for your efforts. -Josh
  19. Here you go Lee: <div id="topHeader"> <div>{SEARCH_FORM}</div> </div> <div>{SITE_DOCS}</div> I tried deleting the underlined '</div>' just now but all that did was adjust some spacing. Any other ideas? Also, I tried deleting 'IE6.css' and 'IE7.css' off the web server (after backing up locally of course), can you tell me if the white background is still there? What's the point of these two files anyway? Seems to me they just modify all the settings I've made elsewhere for someone using IE6 or IE7. -Josh
  20. Hi all, Please see my customer's web site that I'm building for them: http://www.pdmpantiqueprints.com/store/. In Firefox it's fine, but in IE on both their computer and mine, the logo in the upper left shows up twice for some reason. Does anyone have any ideas why? -Josh
  21. Thanks for posting! This has been a big help for me.
×
×
  • Create New...