Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

plopstar

Archived
  • Posts

    10
  • Joined

  • Last visited

Profile Information

  • Real Name
    Stuart

plopstar's Achievements

  1. Sorry to hear some of you are having probs with my 'articles on home page module' hack. :( Unfortunately I'm not an expert enough in PHP or OSC to be able to debug problems with other installs...I just literally pieced it together by guesswork from what others had posted before..and my store is heavily modded. It does work for me...but if there is someone out there who has a bit more experience than I do to make this hacked idea into a contrib proper the works for most people that would be great. Seems like there is a demand. As an aside..I just bashed away at it again and made it into a cool info box too. I'll post the url on this thread when I go live with the store so you can see it in operation and grab it if you want it. Did anyone actually get my contrib to work? I'd love to hear if you did. backup backup backup! :) Cheers, Stuart
  2. Hi guys, I wanted to show new articles my home page in a module box so I hacked this together with code from earlier posts on this board (thankyou contributors!) and a bit of added html for the box by myself...my html code is not pretty info box wise but it works for me....thought it might be useful for others. Use at your own risk...backup...etc make a new file new_articles.php and pop it in your modules directory code as follows: <?php $articles_new_array = array(); $articles_new_query_raw = "select a.articles_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_id, au.authors_name, td.topics_id, td.topics_name from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' order by a.articles_date_added desc, ad.articles_name"; $articles_new_split = new splitPageResults($articles_new_query_raw, MAX_NEW_ARTICLES_PER_PAGE); ?> <?php if ($articles_new_split->number_of_rows > 0) { $articles_new_query = tep_db_query($articles_new_split->sql_query); ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="/test/images/infobox/corner_left.gif" border="0" alt=""></td> <td height="14" class="infoBoxHeading" width="100%">Most Recent Articles</td> <td height="14" class="infoBoxHeading"><img src="/test/images/infobox/corner_right.gif" border="0" alt=""></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="4" class="infoBoxContents"> <tr> <?php while ($articles_new = tep_db_fetch_array($articles_new_query)) { ?> <tr> <td class="boxText"><?php echo ' <a href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $articles_new['articles_id']) . '">' . $articles_new['articles_name']. '</a>' ?></td> <td><?php echo 'updated ' . tep_date_long($articles_new['articles_date_added']); ?></td> </tr> <?php } // End of listing loop } else { ?> <?php } ?> </tr> </table> </td> </tr> </table> then pop a reference to it in your index.php I put it just above the reference to upcoming products.... my files are quite heavily modded so yours may be different. <TR> <td> <?php require(DIR_WS_MODULES . 'new_articles.php');?> </TD> </TR> <?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> and voila..the titles of new articles appear on the home page for all to see! woohoo! If someone has created a neater solution for the same thing let me know.. :) Have fun, Stuart
  3. Hi all, just an easy question for experienced players (still have my osc/php training wheels on here)... I've added the google adsense contrib to my shop and I only want to show google boxes on my article pages that way there are no distractions for buyers in the rest of my shop :) Basically I need the 'if..then' code to pop in my column_right.php to do the following... If an article page is currently displayed then show-my-info-box also...I need a similar 'if then' to show an infobox only if my shop home page is displayed. If displaying the home page then show-my-info-box Any clues most gratefully received :) Many thanks, Stuart
  4. Session settings as follows: Session Directory /tmp Force Cookie Use True Check SSL Session ID False Check User Agent True Check IP Address True Prevent Spider Sessions True Recreate Session True Sorry for slow response to last post...in the middle of a web host move too. Busy 'rewiring' osc into new environment ;) Cheers, Stuart
  5. As an update (for the benefit of anyone else who may have these problems)... I just tried using the 'buy now button links to forms' SID killer addon contrib to get around this...didnt seem to work for me :( I'll just force cookies for now and get up and running :) Stuart
  6. aha...the plot thickens :) Fantastic...I set my configure.php in the following way and cookies started working ...lovely clean urls now etc (slightly different than in the thread suggested - took a little experimentation) :) define('HTTP_SERVER', 'http://mysitehere.com'); define('HTTPS_SERVER', 'https://mysitehere.com'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '.mysitehere.com'); define('HTTPS_COOKIE_DOMAIN', '.mysitehere.com'); define('HTTP_COOKIE_PATH', '/studio'); define('HTTPS_COOKIE_PATH', '/studio'); Actually..being new to OSC I didnt even realise there was a problem with that until you mentioned it :) Good work. So now, when cookies enabled by the shopper buy now and checkout operate no problem... however, when cookies are turned off the same problem appears. So it looks like something to do with OSC not being able to pass the session baton to the next page when there are no cookies, and SEO's are turned on...but just for buy now and checkout continue buttons! So we have progressed a little - thanks to you :) Any suggestions on the no cookie button problem? Cheers, Stuart
  7. Thanks for the pointer... I just followed the thread suggested...just going to conduct a few experiments :) will keep you posted :) Much appreciated Stuart
  8. Thanks for replying Mark, Searched high and low...seems to be a few others with this problem but no resolutions that I can discover :( When SEO's turned off buy now button is pointing at: http://stuartcindy.com/studio/index.php?cP...402975ca23bd893 When SEO's turned on: http://stuartcindy.com/studio/hanging-acce...402975ca23bd893 Checkout problem dissapears when SEO's are turned off... I have force cookies turned off and no SSL installed yet. I'm just wondering if there's a way to change the .htaccess mod rewrite code so that it doesnt touch the buy now button or the continue button at the end of checkout...and if that would make any difference even if I did do that. What do you think? Cheers, Stuart
  9. Hi all, Installed latest version of Ultimate SEO URLs... works great apart from two small but important issues... 'Buy now' bug * When I hit the buy now button in the product list I get an empty cart. :( - I can add the product to the cart fine from the product description though. :) 'checkout bug' * When I complete the checkout process I am returned to the customer login screen (but of course Im already logged in) I looked around the forum and have found mentions of these bugs but no solutions so far. Even had a go at pasting the 'working' code from the product description into the product listing, without success. If anyone has any pointers for solving these bug-ettes I would be very grateful :) Thanks Stuart
  10. I've got some strange things happening with Paypal Shopping Cart IPN 3.1.5(!) When I confirm an order and transfer it over to paypal for processing sometimes the payment amount changes when it gets to paypal (usually just a few dollars less than what it should be). It seems to happen most when I resume a payment from the order history page and I am using a different currency than the shop default. Does anyone have any clues how to solve this? Otherwise the contrib seems to work great. Any help much appreciated Cheers, Stuart
×
×
  • Create New...