Jump to content

bhbilbao

Members
  • Content count

    308
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by bhbilbao


  1. Hi all,

     

    need some suggestion about this in index header, i dont know if right or not.

     

    This is what I want:

    <title>Welcome to STORE</title>
    <meta name="description" content="We sell wooden products of various bla bla bla..... ">

     

     

    This is the thing i gets:

    <title>Welcome to STORE - We sell wooden products of various bla bla bla.....</title>
    <meta name="description" content="Welcome to STORE, We sell wooden products of varius bla bla bla.....">

     

    When google indexes the page the content are repeated. I dont know if this is right. I would like to modify it.

     

     

    This is de devil code:

            /**
           * Root index page
           */
           default:
             KissMT::init()->setCanonical( $this->checkCanonical() );
             $this->parse( KissMT::init()->entities( sprintf( KISSMT_HOMEPAGE_TITLE, STORE_NAME ), $decode = true ), KissMT::init()->entities( sprintf( KISSMT_HOMEPAGE_DESCRIPTION, STORE_NAME ), $decode = true ) );
             break;
         }
       } // end method


  2. @josejolls

     

    Start removing <title><?php echo TITLE; ?></title> with HeaderTagsSeo.

    This post is for KissMT.

     

    Robert , I have a new dude:

     

    ref:

    3 - Now let's do the same to a few more files so they can all benefit from KissMT

    I recommend modifying, at least, the following catalog/ files (same tiny file changes as above)

    * reviews.php

    * specials.php

    * products_new.php

     

    I changed specials.php and products_new.php, but then all pages have the same meta_name, meta_descript and meta_keywords.

     

    I don´t know if this is right.


  3. for roquetsynce:

    Anyone know where I can look to figure this one out?

     

    I had the similar error

    1146 - Table 'db308865513.TABLE_SUPPLIERS' doesn't exist

     

    select suppliers_group_name, suppliers_group_id from TABLE_SUPPLIERS order by suppliers_group_id

     

    I fix it changing rss_edgeio.php file from admin/ folder to root.

     

    I use rhe script but it generates an empty .xml file with NO PRODUCTS.

     

    Knows anybody how to fix??


  4. Thanks Robert,

     

    I fixed the problem renaming the cache files.

     

    I will delete the popupimage file as you say.

     

    There is also an option in Configuration>KissMT Meta Tags

     

    Reset KissMT Cache false

     

    I don´t know whant makes this option exactly . I turn it on to reset and then I refreshed the index page, but other pages don´t change their metas decrip.


  5. Hi all,

     

    need some suggestion about this in index header, i dont know if right or not.

     

    This is what I want:

    <title>Welcome to STORE</title>
    <meta name="description" content="We sell wooden products of varius bla bla bla..... ">

     

     

    This is the thing i gets:

    <title>Welcome to STORE - We sell wooden products of varius bla bla bla.....</title>
    <meta name="description" content="Welcome to STORE, We sell wooden products of varius bla bla bla.....">

     

    When google indexes the page the content are repeated. I dont know if this is right. I would like to modify it.

     

     

    This is de devil code:

            /**
           * Root index page
           */
           default:
             KissMT::init()->setCanonical( $this->checkCanonical() );
             $this->parse( KissMT::init()->entities( sprintf( KISSMT_HOMEPAGE_TITLE, STORE_NAME ), $decode = true ), KissMT::init()->entities( sprintf( KISSMT_HOMEPAGE_DESCRIPTION, STORE_NAME ), $decode = true ) );
             break;
         }
       } // end method


  6. Hi Jim,

     

    I need some help.

     

    In checkout_shipping.php page, I need to add the vendor_name and vendor_city where says "Products from this vendor"

     

    Something like "Products to ship from "vendor_name" on "vendor_city""

     

    I don´t know if I must add code in the following lines:

                  $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
                 $quote[0]['methods'][0]['cost'] = '0';
               } else {
                 $total_weight = $vendor_shipping[$vendor_id]['weight'];
                 $shipping_weight = $total_weight;
                 $cost = $vendor_shipping[$vendor_id]['cost'];
                 $total_count = $vendor_shipping[$vendor_id]['qty'];
                 $quote = $shipping_modules->quote($method, $module, $vendor_id);
    
               }
               if (isset($quote['error'])) {
                 tep_session_unregister('shipping');
               } else {
                 if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
                   $output[$vendor_id] = array('id' => $module . '_' . $method,
                                               'title' => $quote[0]['methods'][0]['title'],
                                               'ship_tax' => $ship_tax,
                                               'products' => $products_array,
                                               'cost' => $quote[0]['methods'][0]['cost']			    
    

     

    Thanks in advance.


  7. In /includes/modules/ultimate_seo_urls5/cache/

     

    I renamed

    1_usucache.cache 48KB

    2_usucache.cache 170KB

    3_usucache.cache 239KB

     

    to

     

    backup_1_usucache.cache

    backup_2_usucache.cache

    backup_3_usucache.cache

     

    refreshed the page and now there in no error. I don´t know if this could be right or not.

     

    New file appeared 3_usucache.cache 9KB


  8. Yes I have seen this before, one user has 50,000 products and had the same issue, send me a personal email and I'll send back the modded files.

    I already have readed the posts before.

     

    I get this error:

    Fatal error: Out of memory (allocated 27262976) (tried to allocate 4760500 bytes) in /homepages/6/xxxxxxxxxx/htdocs/includes/modules/ultimate_seo_urls5/classes/Usu_Cache_FileSystem.php on line 32

     

    I replaced the line 32 of that file by a big number. 2048, 4096

    but nothing.

     

    Started to give this error after I changed by error the products_description column by products_head_desc_tag column.

    or probably of big number of items. I don´t know.

     

    What could be the solution.

    How can be reset the caché???


  9. 1. ok. is because the stop-play button sometimes stay infront of the text or the price of the banner and hide them. I will try repositing the button to one corner.

    2. Yes, using URL rewrite in httaccess. I will remove the htlm links.

    3. normaly using clasic 468px × 60px, but for your new contrib I use an extralarge 650px × 80px bann. I don't want to break your new contrib but i think the stop-play button is a nuisance thing. I will try to changing it more transparent.

     

     

    Thanks for all.


  10. Thanks Jim,

     

    great and usefull contribution!

     

    But...

     

    1.How to remove the play-stop button over the images??? (I want to remove the button, only images)

     

    2.In banner manager if I insert a link url, then clicking in rotator always goes to the index page.

     

    3.How lo align the diferent images of the rotator banner to the center??? (With diferent images of diferent sizes they are aligned to the left)

     

    Regards.


  11. Hello

     

    Thanks a lot for your answer.

     

    I don't know under IE6 but it works perfectly under Mozilla Firefox.

     

    Thanks again.

     

    Florent

     

    I have a new problem with the Redeem button in checkout_payment.php

     

    Ref:

    You can redeem this coupon during checkout. Just enter the code in the box provided, and click on the redeem button.

     

    I enter the code of the GiftVouncher and click on the button, but it makes nothing. It seems to be bloqued.

    Can somebody where to change the code for that issue??


  12. Then their test routine is incorrect or you are misreading it. The search engines don't care about the type of page being viewed.

     

    Ok, I understand.

    The documentation says:

    SEO Friendly URLs or static URLs represent an URL structure where links appear to have a static structure like /category/subcategory/page in contrast to dynamic structure like index.php?cat=&subcat=&page=.

     

    Then if you say that the search engines don´t care of the type of pages, i dont need to modify the 5 pages. Are they right?


  13. Hi Jan,

     

    I readed posts #5530 and #5531 of this thread and I need support to Display MSRP & Savings (http://addons.oscommerce.com/info/3574) on product_info.php

     

    My code with SPPC:

     if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
    // BOF Separate Pricing per Customer
         if ($customer_group_id > 0) { // only need to check products_groups if customer is not retail
           $scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id =  '" . $customer_group_id . "'");
           if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
             $product_info['products_price']= $scustomer_group_price['customers_group_price'];
          }
         } // end if ($customer_group_id > 0)
    // EOF Separate Pricing per Customer
         $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
         $products_price_ex = ' ' . $currencies->display_price_ex($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . ' ';		
       } else {
    // BOF Separate Pricing per Customer
         if ($customer_group_id > 0) { // only need to check products_groups if customer is not retail
           $scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id =  '" . $customer_group_id . "'");
           if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
           $product_info['products_price']= $scustomer_group_price['customers_group_price'];
        }
       } // end if ($customer_group_id > 0)
    // EOF Separate Pricing per Customer
         $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
         $products_price_ex = $currencies->display_price_ex($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
       }
        $products_name = $product_info['products_name'];
        $products_qty = $product_info['products_quantity'];
    ?>

     

    Original instructions of MSRP & Savings

    7b) Find:

     

    if ($new_price = tep_get_products_special_price($product_info['products_id'])) {

    $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';

    } else {

    $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));

    }

     

    and change it to read:

     

    $products_price = '<table class="" align="right" border="0" width="100%" cellspacing="0" cellpadding="0">';

    $new_price = tep_get_products_special_price($product_info['products_id']);

    if ($product_info['products_msrp'] > $product_info['products_price'])

     

    $products_price .= '<tr class="PriceListBIG"><td align="right">' . TEXT_PRODUCTS_MSRP . $currencies->display_price($product_info['products_msrp'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td></tr>';

    if ($new_price != '')

    $products_price .= '<tr class="usualpriceBIG"><td align="right">'. TEXT_PRODUCTS_USUALPRICE . '';

    else

    $products_price .= '<tr class="pricenowBIG"><td align="right">'. TEXT_PRODUCTS_OUR_PRICE . '';

     

    $products_price .= $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td></tr>';

     

    if ($new_price != '')

    {$products_price .= '<tr class="pricenowBIG"><td align="right">' . TEXT_PRODUCTS_PRICENOW . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td></tr>';}

    if ($product_info['products_msrp'] > $product_info['products_price'])

    {if ($new_price != '')

    {$products_price .= '<tr class="savingBIG"><td align="right" >' . TEXT_PRODUCTS_SAVINGS_RRP . $currencies->display_price(($product_info['products_msrp'] - $new_price), tep_get_tax_rate($product_info['products_tax_class_id'])) . ' ('. number_format(100 - (($new_price / $product_info['products_msrp']) * 100)) . '%)</td></tr>';}

    else

    {$products_price .= '<tr class="savingBIG"><td ="right" >' . TEXT_PRODUCTS_SAVINGS_RRP . $currencies->display_price(($product_info['products_msrp'] - $product_info['products_price']), tep_get_tax_rate($product_info['products_tax_class_id'])) . ' ('. number_format(100 - (($product_info['products_price'] / $product_info['products_msrp']) * 100)) . '%)</td></tr>';}}

    else

    {if ($new_price != '')

    {$products_price .= '<tr class="savingBIG"><td align="right" >' . TEXT_PRODUCTS_SAVINGS_RRP . $currencies->display_price(($product_info['products_price'] - $new_price), tep_get_tax_rate($product_info['products_tax_class_id'])) . ' ('. number_format(100 - (($new_price / $product_info['products_price']) * 100)) . '%)</td></tr>';}}

    $products_price .= '</table>';

     

    I tried changing code in diferent ways but all were a disaster.


  14. Thanks Jack_mcs,

     

    in includes/aplication_top.php

    // set the HTTP GET parameters manually if search_engine_friendly_urls is enabled
    //  if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
    // ADDED FOR DINAMIC SITEMAP That way if the setting for "Use Search-Engine Safe URLs" gets changed in admin from true to false and a new XML sitemap is not generated osCommerce will still be able to understand the search engine safe URLs that may get used after the change
    // If you are certain PHP version 5 or higher will be used you can simplify the "strpos(strtolower($PHP_SELF)," to " stripos($PHP_SELF, "
                if ((SEARCH_ENGINE_FRIENDLY_URLS == 'true') || (strpos(strtolower($PHP_SELF), '.php/') > 0)) {
    //  PHP V5.0 if ((SEARCH_ENGINE_FRIENDLY_URLS == 'true') || stripos($PHP_SELF, '.php/') > 0)) {
    //  PHP V5.0 if ((SEARCH_ENGINE_FRIENDLY_URLS == 'true') || (stripos($PHP_SELF, '.php/') > 0) {

    I activated "Enable Search-Engine Safe URLs" in admin>configuration.

    I dont know if I must change the commented lines in aplication_top.

     

    it is just a waste of time

    Why did you said that?.

    I use Seo-Doctor addon of Firefox , and all flags are green except for the Seo Friendly Url pages with xxx.php

     

    I need to convert 5 pages that ends with .php (because as i readed Google penalizes them).

     

    services.php

    consulting.php

    rma.hph

    security.php

    new.php

     

    I don´t know how to modify the .htaccess file to include them, or if I need to use other contribution.


  15. All working 100% except for the normal pages of OSC.

     

    I created various pages duplicating contact_us.php and modifing them.

     

    page1.php

    page2.php

     

    The problem is the url doesnt translate to page1.html or page2.html

     

    I use mod_rewrite in .htaccess

    RewriteCond %{QUERY_STRING} ^options\=(.*)$

    RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1

    RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

    # Added polls and newsdesk

    #RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}

    # BOF: Faqdesk support added by faaliyet

    RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}

    # EOF: Faqdesk support added by faaliyet

    # Ultimate SEO URLs END

     

    any suggestion?


  16. Hi again Ronrrico,

     

    finally working with the last release.

     

    The problem was a conflict with other contribution:

    Increase and decrease the size of the text in the description of the products

    http://addons.oscommerce.com/info/7095

     

    here:

    <ul type="square">
    <span class="ft1"><a onclick="TamFonte(1, 'noticia')"><img src="images/diminui_fonte.jpg" border="0"></a></span>
    <span class="ft3"><a onclick="TamFonte(3, 'noticia')"><img src="images/aumenta_fonte.jpg" border="0"></a></span>
    <span class="blue"><h2><?php echo TEXT_INFO;?><?php echo $products_name; ?></h2></span>
    
    <div id="noticia" class="ft1"><?php echo stripslashes($product_info['products_description']); ?></div>

     

     

    I replaced the id="noticia" for the translator code id="source" and working. (but the html <td> ul and li remains without translation).

     

    Other question.

    Now that we have the translator working I need to delete the other languges products description and only use the spanish description. I need this to reduce the database size. I use Spanish(default), english, and euskara. I don´t kwon what line to modify but i think it should be something like this ( products_description.... and language_id=xxx).

     

    Thanks in advance.


  17. I've got the same problem. How did you resolve this? I can't even find the code you quoted in your post.. In which file is it located?

    Finally solved. I returned to the original code and it began to work.

     

    /admin/includes/modules/newsletters/newsletter_products.php

    		for ($i=0, $n=sizeof($this->productsInfo); $i<$n; $i++) {
    		if ($col > COLS-1) {
    			$html_content .= '</tr><tr><td align="center" width="' . $width . '%"><a href="' . tep_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $this->productsInfo[$i]['products_id']) . '" style="' . $cssLink . '">' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $this->productsInfo[$i]['products_image'], $this->productsInfo[$i]['products_name'], 120, 92) . '<br>' . $this->productsInfo[$i]['products_name'] . '</a><br>';
                                   $price = ($this->productsInfo[$i]['specials_price']) ? '<span style="'. $cssMarkdown . '">' . $currencies->display_price($this->productsInfo[$i]['products_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>  <span style="' . $cssSale . '">' . $currencies->display_price($this->productsInfo[$i]['specials_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>' : '<span style="' . $cssPrice . '">' . $currencies->display_price($this->productsInfo[$i]['products_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>';
                                   $html_content .= $price . '</td>';
                                   $col = 0;
                           } else {
                                   $html_content .= '<td align="center" width="' . $width . '%"><a href="' . tep_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $this->productsInfo[$i]['products_id']) . '" style="' . $cssLink . '">' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $this->productsInfo[$i]['products_image'], $this->productsInfo[$i]['products_name'], 120, 92) . '<br>' . $this->productsInfo[$i]['products_name'] . '</a><br>';
                                   $price = ($this->productsInfo[$i]['specials_price']) ? '<span style="' . $cssMarkdown . '">' . $currencies->display_price($this->productsInfo[$i]['products_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>  <span style="' . $cssSale . '">' . $currencies->display_price($this->productsInfo[$i]['specials_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>' : '<span style="' . $cssPrice . '">' . $currencies->display_price($this->productsInfo[$i]['products_price'], tep_get_tax_rate($this->productsInfo[$i]['products_tax_class_id'])) . '</span>';
                                   $html_content .= $price . '</td>';
    		}
    		$col++;
    	}

     

    1.You must modify configure.php

    2.Replace SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT with the numbers of your needs. If you dont change it by numbers there will no any images.

    3.Dont use 0 as number. If you use 100,0 or 0,100 as image width and height , the images will be send as the original size(and correct proportions). I don´t know how to resolve this.

     

    Do anybody knows how to send and email to a particular customer and not to all customers that receives newsletters???

    use phpmyadmin to change the customer_newsletter field to 2 for every customer that has a customer_newsletter = 1.

    UPDATE customers SET customers_newsletter = '2' where customers_newsletter = '1'

    Make an account for yourself in your shop admin and set it to receive the newsletter - test away.

    After your testing is complete, you can change your customer newsletter subscriptions back by using the following query.

    UPDATE customers SET customers_newsletter = '1' where customers_newsletter = '2'

    Is there any button in admin panel to change that, before sending a newsletter(without enter phpmyadmin)???


  18. will enable editing of both mvs orders and the old type of orders

    No, when and order is placed, you can edit it as standard-order or mvs-order, not both.

    Ref:

    <?php
    // MVS start
     if (tep_not_null($order->orders_shipping_id)) {
         require_once ('vendor_order_info.php');
       } else {
    // MVS end
    ?>

     

    I also use a modification in checkout process, I use the old checkout and the mvs checkout process. You can read of if in this thread weeks ago.

     

    I still don't understand the implications of the difference between mvs and regular orders

    Mvs orders are writing in the orders and orders_shipping tables.

    The clasical orders of oscommerce are writing in the orders table only.

     

    If you installed and working MVS, continue using it without problems, all of your orders will be MVS-orders.

     

    see the advantage of using MVS

    ... advantage? .... should be ADVANTAGES!!

    If you have vendors (shops), you can administrate the orders from your web shop to the diferent vendors.

    or

    if you have suppliers, also you can administrate the orders to the diferent suppliers.

     

    Try to acomodate MVS acording your needs.


  19. Need help now with ot_subtotal_ex.php

     

    This works fine in the frontend web.

    Product A: 11,00EUR

    Product B: 11,00EUR

    -------------------------

    Subtotal excl: 18,18EUR

    21% VAT: 3,82EUR

    Subtotal : 22,00EUR

    -------------------------

    Shipping: 3€

    ______________________

    Total incl: 31,66EUR

     

     

     

     

    In the backend (edit_orders.php) the totals are worng.

    + Subtotal excl [22,00] (this should be 18,18€, not 22,00€)

    + VAT 3,82

    + Subtotal 22,00

    + Delivery [ 3 ]

    + TOTAL 31,66€

     

     

     

    The orders.php works fine.

     

     

    Anyone knows where to modify to avoid the including VAT on Subtotal EXc. ??


  20. edit_orders.php from Order Editor for MVS v2.6.4 and renamed it to edit_orders_mvs.php?

    Yes, thats right. Also add it to filenames.php and create a new language file or adding lines to the old one.

     

    I cannot remove Order Editor 5.0.9 because i use it in conjunction with other contribs as google maps, resend order confirmation html, etc.

     

    As I see the unique diference in Order Editor V.S Order Editor MVS is that the last one one separates the shippings when adding products.

    In Order Editor 5.0.9 all items you added are in only one list.

    In other hand the edit_orders_add_product.php is also diferent, for the last one there is not code input field, and no price in the item lists.

     

    This is new for me, and I see extrange things.

    If you delete a item from edit_orders.php(order editor 5.0.9) the shiping_id remains in the order. You could see 2 shippings_id for only one product!, for that I suggest to detete products from edit_order_mvs.php if the order is a type mvs.

     

    Other extrage thing is the ot_subtotal_ex contribution. The base price is wrong calculated in both editors. Im working on it.

     

    how exactly did you make these buttons and in which file? admin/orders.php?

    // bof order list improved 
    $test_string2 =   '';
    
    if ( $has_pdf_invoice ) {
      // use the pdf invoice
      if ( CONFIG_ADMIN_PDF_INVOICE_PACKINGSLIP == 'PDF' or CONFIG_ADMIN_PDF_INVOICE_PACKINGSLIP == 'BOTH' ) {
         $test_string2 .=  '<a href="' . tep_href_link(FILENAME_PDF_INVOICE,     'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_invoice_pdf.gif', IMAGE_ORDERS_INVOICE) . '</a>  
      }
    
                            <a href="' . tep_href_link(FILENAME_PDF_PACKINGSLIP, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_packingslip_pdf.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a> ' ;
    //CREAR NUMERO FACTURA
      if ($order->billing['invoice_number'] == 0) {
         $test_string2 .=  '<a href="' . tep_href_link(FILENAME_CREAR_NUM_FACTURA,  'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_creanumfact.gif', IMAGE_NUM_FACT) . '</a> ' ;   
      } 
    
    
      if ( CONFIG_ADMIN_PDF_INVOICE_PACKINGSLIP == 'HTML' or CONFIG_ADMIN_PDF_INVOICE_PACKINGSLIP == 'BOTH' ) {                      
         $test_string2 .=  '<a href="' . tep_href_link(FILENAME_ORDERS_INVOICE,     'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a>                                                         
                            <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a> ' ;          
      }
    } else {
    
       $test_string2 .=  '<a href="' . tep_href_link(FILENAME_ORDERS_INVOICE,     'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a>                                                         
                          <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a> ' ;          
    }                   
    
    if ( $has_order_editor ) { 
      $test_string2 .=  '<a href="' . tep_href_link(FILENAME_ORDERS_EDIT,         'oID=' . $HTTP_GET_VARS['oID']) . '">'                 . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>' ;          
    }
    if ( $has_order_editor ) { 
      $test_string2 .=  '<a href="' . tep_href_link(FILENAME_ORDERS_EDIT_MVS,         'oID=' . $HTTP_GET_VARS['oID']) . '">'                 . tep_image_button('button_edit_mvs.gif', IMAGE_EDIT_MVS) . '</a>' ;          
    }
    if ( $has_label_pdf ) { 
      $test_string2 .=  '<a href="' . tep_href_link(FILENAME_ORDERS_LABEL,       'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_label.gif', IMAGE_ORDERS_LABEL) . '</a>' ;          
    }
    
    if ( $google_map_directions ) { 
      $test_string2 .=  '<a href="' . tep_href_link(FILENAME_GOOGLE_MAP,         'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_google_directions.gif', IMAGE_GOOGLE_DIRECTIONS) . '</a>' ;          
    }
    
    $test_string2 .=  '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>';
    
    ?>
             <td class="pageHeading" align="center"><?php echo  $test_string2 ; ?></td>		   
    <?php
           } // endif show buttons png
    

     

    P.D: need help with the serials contribution. Anyone?


  21. hoped to find a way to make the version of Order Editor / Order Maker

    I have all installed and working.

    1.Order Editor

    2.Order editor for MVS

    3.Manual Order Maker

     

    For Order Editor for MVS I copied edit_orders.php as edit_orders_mvs.php inside /admin.

    I also created a new class named as order_mvs.php inside /admin/includes/classes

    with this code:

     /// Begin mods for Order Editor
    // Return the tax description for a zone / class
    // TABLES: tax_rates;
     function tep_get_tax_description($class_id, $country_id, $zone_id) {
       $tax_query = tep_db_query("select tax_description from " . TABLE_TAX_RATES . " tr left join " . TABLE_ZONES_TO_GEO_ZONES . " za on (tr.tax_zone_id = za.geo_zone_id) left join " . TABLE_GEO_ZONES . " tz on (tz.geo_zone_id = tr.tax_zone_id) where (za.zone_country_id is null or za.zone_country_id = '0' or za.zone_country_id = '" . (int)$country_id . "') and (za.zone_id is null or za.zone_id = '0' or za.zone_id = '" . (int)$zone_id . "') and tr.tax_class_id = '" . (int)$class_id . "' order by tr.tax_priority");
       if (tep_db_num_rows($tax_query)) {
         $tax_description = '';
         while ($tax = tep_db_fetch_array($tax_query)) {
           $tax_description .= $tax['tax_description'] . ' + ';
         }
         $tax_description = substr($tax_description, 0, -3);
    
         return $tax_description;
       } else {
         return ENTRY_TAX;
       }
     }
    
    ////
    
    // Function    : tep_get_country_id
     // Arguments   : country_name		country name string
     // Return      : country_id
     // Description : Function to retrieve the country_id based on the country's name
     function tep_get_country_id($country_name) {
       $country_id_query = tep_db_query("select * from " . TABLE_COUNTRIES . " where countries_name = '" . $country_name . "'");
       if (!tep_db_num_rows($country_id_query)) {
         return 0;
       }
       else {
         $country_id_row = tep_db_fetch_array($country_id_query);
         return $country_id_row['countries_id'];
       }
     }
    
      // Function    : tep_get_zone_id
     // Arguments   : country_id		country id string    zone_name		state/province name
     // Return      : zone_id
     // Description : Function to retrieve the zone_id based on the zone's name
     function tep_get_zone_id($country_id, $zone_name) {
       $zone_id_query = tep_db_query("select * from " . TABLE_ZONES . " where zone_country_id = '" . $country_id . "' and zone_name = '" . $zone_name . "'");
       if (!tep_db_num_rows($zone_id_query)) {
         return 0;
       }
       else {
         $zone_id_row = tep_db_fetch_array($zone_id_query);
         return $zone_id_row['zone_id'];
       }
     }
    
    
    // Function    : tep_html_quotes
     // Arguments   : string	any string
     // Return      : string with single quotes converted to html equivalent
     // Description : Function to change quotes to HTML equivalents for form inputs.
     function tep_html_quotes($string) {
       return str_replace("'", "'", $string);
     }
    
    /////end Order Editor mods

     

     

    Then in admin/orders.php I added:

    require(DIR_WS_CLASSES . 'order_mvs.php');

     

    For the admin panel I created a new button

    [DETAILS] = orders.php

    [MOFIFY] = edit_orders.php

    [ORDER SUPPLIER] = edit_orders_mvs.php

     

     

    Now im trying to create a button to delete the orders_shipping_id line to convert a partivular mvs-order in standard-order.

×