Jump to content
Latest News: (loading..)

BrockleyJohn

♥Ambassador
  • Content count

    862
  • Joined

  • Last visited

  • Days Won

    23

BrockleyJohn last won the day on April 23

BrockleyJohn had the most liked content!

6 Followers

Profile Information

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. There's only one advocating it - I think it's a bad idea. @rulegacy there are reviews in core - did you check out whether you can use the existing reviews module? If your data is incompatible, migrating it would be better than bespoke code unless that lacks something important to you. If you just want to display it differently, see if you can achieve that by updating only the template file. Updating functions/general.php (apart from being the wrong place for html output) is likely an unnecessary change to core code.
  2. @rulegacy first off, change $HTTP_GET_VARS to $_GET which is globally accessible @14steve14 that's where Hotclutch's approach gets properly messy - you need a third div of width 12, which this way is yet another set of pi modules. What I would do is keep all modules together and add two new ones to top and tail the right section. Shown in sort order: 1. pic is width 6 2. start new div, width 6 also class row 3. modules you want on the right at sm up 4. end new div 5. modules you want underneath
  3. It's simply <div class="row"> <div class="col-sm-6 row"><?php echo $oscTemplate->getContent('product_info'); ?></div> <div class="col-sm-6 row"><?php echo $oscTemplate->getContent('product_info2'); ?></div> </div> If you want two columns of equal width above xs. Otherwise adjust them but make sure it adds to 12. Bootstrap does the rest for you. Done like this, your module widths are divisions of the column width rather than the whole centre section (above xs).
  4. BrockleyJohn

    Change site return address?

    For paypal_standard, see the process_button method
  5. I suspect your browser has cached the redirect. There is also a small chance your hosting is serving cached pages but I'd try clearing the browser cache for the site.
  6. If you are just looking for an easy way to test your site while you are building it without setting up a payment provider, you could use money order. There's no option in the cod module for accepting orders for only virtual products for obvious reasons; you would need to change the code to do it. It accepts orders if there's something physical as well as downloadable.
  7. to do as suggested, create an extra subfolder under includes/modules/content/ (and includes/languages/....../modules/content/) called product_info2, move the modules that you want into that folder (and their template files to the subfolder and their language files to the language folder)
  8. I agree that doesn't fit very well with the delivered code. The layout that best represents what you want is two divs side by side, each half the width on sm and above, with the one on the right containing everything else that's not the gallery. The easiest way to achieve this is two extra modules, one that begins the container and another that ends it.
  9. BrockleyJohn

    Spaces in image names

    Although spaces in file names are considered a bad thing on the internet, osc allows you to upload an image whose name contains spaces and uses that name for the online version, without any apparent problems. However I have noticed that recently they have started throwing up errors in google webmaster tools. g has said for a long time that they consider image names containing spaces to be invalid and that it could prevent products showing in g shopping results. The actual error thrown up is weird - it reports as a redirect error, and shows the problem url as the image name up to the first space. Fortunately the fix is simple - you just need to edit the tep_image function in catalog/includes/functions/html_output.php to make sure that any spaces are converted to %20: strtr(tep_output_string($src),array(' ' => '%20')) instead of tep_output_string($src) Of course, avoiding spaces in the names in the first place is a good idea too.
  10. In catalog/includes/modules/product_listing.php, line 168 should be $prod_list_contents .= ' <div class="col-xs-6" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><meta itemprop="priceCurrency" content="' . tep_output_string($currency) . '" /><div class="btn-group" role="group"><button type="button" class="btn btn-default"><del>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del>&nbsp;&nbsp;<span class="productSpecialPrice" itemprop="price" content="' . $currencies->display_raw($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span></button></div></div>'; the change here is to set the price in the schema data to the special price instead of the normal product price
  11. BrockleyJohn

    USPS Rate V4, Intl Rate V2 (official support thread)

    for ($i=0, is_array($quotes['methods']) && $n=sizeof($quotes['methods']) >= 0; $i<$n; $i++) { test it's an array before sizing it On your new error I guess you're getting an error response that's not handled properly. Try changing line 424 to } elseif (is_array($response_array['Package'])) {
  12. BrockleyJohn

    set up paypal api

    https://library.oscommerce.com/Package&paypal&oscom23
  13. BrockleyJohn

    Paypal Issue Could not verify the PayPal transaction

    create a new business account in the developer.pp and use the same credentials (copied and pasted via notepad to ensure they are the same) to login sandbox.pp this definitely works, I just did it
  14. BrockleyJohn

    Paypal Issue Could not verify the PayPal transaction

    pp invents the personal details when you create the account in sandbox if you can't use it just create a new sandbox merchant account on developer.pp and use that instead - you can have as many as you want
×