Jump to content

timmyriddle

Members
  • Content count

    13
  • Joined

  • Last visited

Everything posted by timmyriddle

  1. timmyriddle

    [Contribution] Linked Products

    This looks like a really useful contribution and its a shame that its no longer being developed! Being able to encourage customers to add accessories will massively help us meet our margin on more competitively priced products. There seem to be several contributions that offer a similar functionality but none would work as neatly as Linked Products could if it was completed. Most other contributions I've seen work by suggesting similar products, which have to be added to the basket separately. The beauty of this is that all products checked in product_info.php are added to the cart in one go. If the price was dynamically adjusted, we'd be looking at one really neat contrib. I'd like to realise some of the functionality that Linked Products offers and would consider writing my own contrib to do something similar. I don't want to re-invent the wheel, so Zappo if you have any plans to rejuvenate this then let me know! Tim. :thumbsup:
  2. timmyriddle

    [Contribution] Option Types v2

    Hi there, I'm looking for a contribution that will make it really easy for customers to add accessories to a product. Ideally I'd like the optional accessories to be shown at checkboxes and the price dynamically updated when the checkboxes are selected. It would be perfect if these options could be actual products which are added to the basket separately when they are selected and have their stock adjusted accordingly. I've had a look at Zappo's Linked Products addon which looks perfect, but in the support thread he advised against using it in a live shop. Does Option Types offer any of the functionality I need? I'm also using QTpro, so would be interested to hear if anyone has that working with Option Types. Thanks for your help! Tim. :thumbsup:
  3. timmyriddle

    RSS News

    I've just added some code to rss_news.php to take <pubdate> from the RSS feed and display the date underneath the headline. $text_string .= date('D j M', strtotime($rss_channel["ITEMS"][$i]["PUBDATE"])) . '<br>'; In the snippet below I've added some styling so that the date is smaller & slightly greyed out. I hope someone finds this useful and if anyone knows how to make this code any tidyer then please share, I'm a long way from a php pro! <?php include(DIR_WS_MODULES . '/' . FILENAME_RSS_READER); $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_RSS_NEWS); new infoBoxHeading($info_box_contents, false, false); $text = array(); if (isset($rss_channel["ITEMS"])) { if (count($rss_channel["ITEMS"]) > 0) { $maxLength = MAX_CHARACTERS; $maxCount = (count($rss_channel["ITEMS"]) > MAX_ARTICLE) ? MAX_ARTICLE : count($rss_channel["ITEMS"]); $text_string = '<div class="smallText" style="color: #cccccc;">'; for($i = 0;$i < $maxCount; $i++) { $text_string .= '<strong>' . $rss_channel["ITEMS"][$i]["TITLE"] . '</strong><br>'; $text_string .= '<div style="color: #898989; font-size: 0.9em">'; $text_string .= date('D j M', strtotime($rss_channel["ITEMS"][$i]["PUBDATE"])) . '<br>'; $text_string .= '</div>'; $length = strlen(html_entity_decode($rss_channel["ITEMS"][$i]["DESCRIPTION"])); $snip = substr(html_entity_decode($rss_channel["ITEMS"][$i]["DESCRIPTION"]),0, ($length > $maxlength) ? $maxLength : $length); $text_string .= $snip; if ($length > $maxLength) { $text_string .= '...<br>'; $text_string .= '<a target="_blank" href="' . $rss_channel["ITEMS"][$i]["LINK"] . '"><font color="#dd0000">[see article]</font></a><hr>'; } else $text_string .= '<br><hr>'; } $text_string .= '</div>'; if (count($rss_channel["ITEMS"]) > 5) $text_string .= '<a title="More Feeds" href="' . tep_href_link(FILENAME_RSS_READER, '', 'NONSSL') . '"><font color="#dd0000">More News...</font></a>'; } } $info_box_contents = array(); $info_box_contents[] = array('text' => $text_string); new infoBox($info_box_contents); ?>
  4. timmyriddle

    RSS News

    stirnpanzer - your fix worked a treat!! I was being driven mad by the fopen error and it is now working like a charm. For anyone else interested, my shop is actually contained in an addon domain within my hosting account. I dropped the php.ini file into the root of the addon domain. Thanks! Tim.
×