Jump to content

enigma1

Members
  • Content count

    8,156
  • Joined

  • Last visited

Profile Information

Recent Profile Visitors

35,463 profile views
  1. enigma1

    [Contribution] SEO-G

    there are things you can do but I haven't tried/tested anything so I cannot recommend unless you know well the osc framework. It can be quite complicated. - You could setup some code to check if the SEO-G global flag is active. ($g_seo_flag) - If it is active you do nothing. If it's not active you could call the check_redirection() member function or make a similar one to check if the incoming url is set for a redirect - And you add the old osc url to the redirection table. Now this can break several things so you need to experiment locally and not with a live store.
  2. enigma1

    [Contribution] SEO-G

    you need to tick the boxes on the left for the entries you want to modify.
  3. enigma1

    [Contribution] SEO-G

    takes time for spiders to index a store. So is likely they indexed it before you deployed the SEO-G module. And in this case you cannot use the redirection table by default because the indexed link has the php extension.
  4. enigma1

    [Contribution] SEO-G

    No, There is a class underneath each of the listed types that deals with a single parameter. The products deals with products_id. The product reviews are controled by the same handler because again the products_id is used. I haven't seen a problem with HTC. I believe the problem comes because you aren't setting up the secondary handlers for the products class. Check the documentation about it. All php scripts that display links with the products_id must be listed as secondary handlers (except the product_info.php of course which is the primary).
  5. enigma1

    [Contribution] SEO-G

    I do not see anything from the images you posted. You need to setup the secondary handlers properly. The default ones work with the stock osc. If you renamed or have other scripts that process the products_id you will have to set them properly with the secondary handlers for each type. From the text I see you have product_info.php (that's the primary handler so what's doing there?) And what are the reviews and write reviews types?
  6. enigma1

    [Contribution] SEO-G

    This has to do with how you configure the cookies. It is not related with this contribution.
  7. enigma1

    [Contribution] SEO-G

    You need to change the linkage from the osc Admin->SEO-G->G-Types. If you want the product links to always show the manufcturer set the manufacturer linkage equal to products linkage. (default is 1) See the SEO-G types configuration section in the documentation
  8. enigma1

    [Contribution] SEO-G

    ok the first problem is here (from root.php code) if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); } This is not good. You need to put the code to setup the seo-g variables. There should be comments inside the root.php file (beginning of file).
  9. enigma1

    [Contribution] SEO-G

    you may have to post the root.php, the .htaccess from the osc catalog and configure.php (minus dbase info). These are the files that if not properly setup can likely cause the problem.
  10. it's hard-coded in catalog\includes\modules\new_products.php $col ++; if ($col > 2) { $col = 0; $row ++; } you could change it to 1. And you could setup a configuration switch to control it from the admin
  11. enigma1

    GOOGLE CHECKOUT IPN

    Hi ski, I was testing the code for the countries issues that was previously reported. I did few mods to the catalog\includes\modules\payment\google.php function gen_shopping_cart. The mods allow a store to use the module regardless of country. So the same code should work for UK, US etc. Cannot recall when I got the file so is best if you could review it first. (there coulld be other updates in-between) Here is the entire gen_shopping_cart function function gen_shopping_cart($orders_id) { global $order, $order_total_modules; //-MS- International Support Added if( isset($order->delivery['country_id']) ) { $country_info = tep_get_countries($order->delivery['country_id'],true); } else { $country_info = array('countries_iso_code_2' => 'US'); } //-MS- International Support Added EOM $default_tax_rate = number_format($order->info['tax'] / $order->info['subtotal'], 2, '.', ''); $eol = "\n"; $alternate_tax = ''; $data = '<?xml version="1.0" encoding="UTF-8"?>' . $eol; $data .= ' <checkout-shopping-cart xmlns="http://checkout.google.com/schema/2">' . $eol; $data .= ' <shopping-cart>' . $eol; $data .= ' <items>' . $eol; reset($order->products); foreach ($order->products as $key => $value) { $tax = number_format($value['tax'] / 100, 2, '.', ''); $data .= ' <item>' . $eol; $data .= ' <item-name>' . htmlentities($value['name']) . '</item-name>' . $eol; $data .= ' <item-description>' . htmlentities($value['name']) . '</item-description>' . $eol; $data .= ' <unit-price currency="' . $order->info['currency'] . '">' . $value['final_price'] . '</unit-price>' . $eol; $data .= ' <quantity>' . $value['qty'] . '</quantity>' . $eol; $data .= ' <tax-table-selector>tax-' . $value['id'] . '</tax-table-selector>' . $eol; $data .= ' </item>' . $eol; $alternate_tax .= ' <alternate-tax-table name="tax-' . $value['id'] . '" standalone="false">' . $eol; $alternate_tax .= ' <alternate-tax-rules>' . $eol; $alternate_tax .= ' <alternate-tax-rule>' . $eol; $alternate_tax .= ' <rate>' . $tax . '</rate>' . $eol; $alternate_tax .= ' <tax-area>' . $eol; $alternate_tax .= ' <postal-area>' . $eol; $alternate_tax .= ' <country-code>' . $country_info['countries_iso_code_2'] . '</country-code>' . $eol; $alternate_tax .= ' </postal-area>' . $eol; // $alternate_tax .= ' <us-country-area country-area="FULL_50_STATES"/>' . $eol; $alternate_tax .= ' </tax-area>' . $eol; $alternate_tax .= ' </alternate-tax-rule>' . $eol; $alternate_tax .= ' </alternate-tax-rules>' . $eol; $alternate_tax .= ' </alternate-tax-table>' . $eol; } if (MODULE_ORDER_TOTAL_INSTALLED && is_array($order_total_modules->modules)) { reset($order_total_modules->modules); while (list(, $value) = each($order_total_modules->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $size = sizeof($GLOBALS[$class]->output); for ($i=0; $i<$size; $i++) { if ($value == 'ot_coupon.php' || $value == 'ot_gv.php') { $discount_title = htmlentities(substr($GLOBALS[$class]->output[$i]['title'], 0, strlen($GLOBALS[$class]->output[$i]['title']) - 1)); $discoun_value = number_format($GLOBALS[$class]->output[$i]['value'], 2, '.', ''); $data .= ' <item>' . $eol; $data .= ' <item-name>' . $discount_title . '</item-name>' . $eol; $data .= ' <item-description>' . $discount_title . '</item-description>' . $eol; $data .= ' <unit-price currency="' . $order->info['currency'] . '">-' . $discoun_value . '</unit-price>' . $eol; $data .= ' <quantity>1</quantity>' . $eol; $data .= ' </item>' . $eol; } } } } } $data .= ' </items>' . $eol; $data .= ' <merchant-private-data>' . $eol; $data .= ' <osc-orders-id>' . $orders_id . '</osc-orders-id>' . $eol; $data .= ' </merchant-private-data>' . $eol; $data .= ' </shopping-cart>' . $eol; $data .= ' <checkout-flow-support>' . $eol; $data .= ' <merchant-checkout-flow-support>' . $eol; $data .= ' <continue-shopping-url>' . htmlentities(tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'order_id=' . $orders_id)) . '</continue-shopping-url>' . $eol; $data .= ' <tax-tables>' . $eol; $data .= ' <default-tax-table>' . $eol; $data .= ' <tax-rules>' . $eol; $data .= ' <default-tax-rule>' . $eol; $data .= ' <shipping-taxed>false</shipping-taxed>' . $eol; $data .= ' <rate>' . $default_tax_rate . '</rate>' . $eol; $data .= ' <tax-area>' . $eol; $data .= ' <postal-area>' . $eol; $data .= ' <country-code>' . $country_info['countries_iso_code_2'] . '</country-code>' . $eol; $data .= ' </postal-area>' . $eol; //$data .= ' <us-country-area country-area="FULL_50_STATES"/>' . $eol; $data .= ' </tax-area>' . $eol; $data .= ' </default-tax-rule>' . $eol; $data .= ' </tax-rules>' . $eol; $data .= ' </default-tax-table>' . $eol; $data .= ' <alternate-tax-tables>' . $eol; $data .= $alternate_tax; $data .= ' </alternate-tax-tables>' . $eol; $data .= ' </tax-tables>' . $eol; if (tep_not_null($order->info['shipping_method'])) { $data .= ' <shipping-methods>' . $eol; $data .= ' <flat-rate-shipping name="' . htmlentities($order->info['shipping_method']) . '">' . $eol; $data .= ' <price currency="' . $order->info['currency'] . '">' . number_format($order->info['shipping_cost'], 2, '.', '') . '</price>' . $eol; // Worldwide Support $data .= ' <shipping-restrictions>' . $eol; $data .= ' <allowed-areas>' . $eol; $data .= ' <world-area/>' . $eol; $data .= ' </allowed-areas>' . $eol; $data .= ' </shipping-restrictions>' . $eol; // Worldwide Support EOM $data .= ' </flat-rate-shipping>' . $eol; $data .= ' </shipping-methods>' . $eol; } // UK round-up $data .= ' <rounding-policy>' . $eol; $data .= ' <mode>HALF_UP</mode>' . $eol; $data .= ' <rule>TOTAL</rule>' . $eol; $data .= ' </rounding-policy>' . $eol; $data .= ' </merchant-checkout-flow-support>' . $eol; // UK round-up EOM // $data .= ' </merchant-checkout-flow-support>' . $eol; $data .= ' </checkout-flow-support>' . $eol; $data .= ' </checkout-shopping-cart>' . $eol; return $data; } The UK round-up section and worldwide sections I copied them from previous posts. The round-up section could only be applicable for certain currencies haven't tested that much. So the country_info array is used instead of the hard-coded US with the default module. Since the osc has support for setting up zones for payment modules the worldwide support code should cover all cases.
  12. enigma1

    [Contribution] SEO-G

    yes I understand. The primary target of SEO-G are the search engines. Anything SEs cannot see can be a regular link. Don't forget the XML map that is generated from recorded URLs so that can count as duplicated urls if it was recorded due to the way osC processes the product attributes (ie there are no page content differences).
  13. enigma1

    [Contribution] SEO-G

    It's what spiders can index. They cannot index links from the shopping cart because if they try to add something they should be redirected to the cookies usage page. And the product_info.php page contains a form to add items. Forms won't be translated. Bu default, a regular customer will see the original osC url from within the shopping cart.
  14. enigma1

    [Contribution] SEO-G

    It's how it works at the moment. I thought of adding attributes to the links but they're not viewable by spiders so there is no point. Spiders cannot add items to the shopping cart. And the link is not translated when safe mode is on. When it's off it shows just the products link
  15. enigma1

    [Contribution] SEO-G

    Doesn't the document state to also modify the root.php (item-9b) And it is also noted at the top of the root.php
×