Jump to content

gmltw

Members
  • Content count

    60
  • Joined

  • Last visited

Posts posted by gmltw


  1. Awesome contribution!!

     

    Installed today and followed your common problems info and fixed every problem.

     

    However, (you knew that was coming didn't ya :blink: ) I see a need. While searching through this thread a ran across this being mentioned by another person but I never saw a solution mentioned so I wanted to bring it up again.

     

    Imagine for a moment.

    If a customer loads their cart and begins to check out, say - maybe they want to see what the shipping will cost or maybe they can't add very good and they want to see what the total is before adding more stuff to their cart, whatever the reason. They go to the order total page and they have input their coupon code (Because they can't add and want to see what the total is or whatever.) and then they decide - "Hey, I still gots me a bit a money to spend." So they go back surfing through my store and add a few more products. Finally they are pretty sure that they are at their limit and want to check out. Only when they get to the place to put the coupon in again and they do so it says they already used it. Now, these simple minded folk are not about to E-mail me and let me know they want another coupon, nope they are going to walk right out my door (figuratively of course) and find another business that doesn't waste their time. You see where I am going with this?

     

    This needs to be fixed. The code should not be recorded as being used by the customer until they have committed their money and checked out. Perhaps this is the way it is and there is a problem with my store, I don't know. If anyone has a suggestion I am all ears. :lol:

     

    Have a look if you like. http://gscoffeeclub.com Please realize this store is live and you will be charged if you go through with the order.

     

    I say again, this is an awesome contribution.

     

    Thanks,

     

    Gary


  2. Just to update for all who are needing the MVS and OS Commerce PayPal IPN to work together. I am probably not the best person for the job but it seems like no one else wants to take it on. I am in the process of getting them to work nicely with each other without throwing too many temper tantrums. It is proving to be more than I expected but I don't give up so don't loose hope. :)

     

    I have received many PMs concerning these two contribs and I promise that as soon as I get it solid it will be in the MVS files. I am hoping that I can finish in a week or less. If anyone would like to help or knows more than I do I am not proud, I will accept help. :)

     

    I have succeeded in getting the extra email and the update from Preparing [PayPal IPN] to whatever you have it set to update to when paypal verifies the money.

     

    The rest will take a bit more time.

     

    Thanks,

     

    Gary


  3. Sorry, I named the wrong file..

     

    You must have changed paypal_ipn.php to match checkout_process.php

     

    Thanks!

    phi148,

     

    I was just reviewing the known issues of the OS COmmerce PayPal IPN and noticed that the number one issue seems to coincide with the problems we are having with the E-Mail.

     

    Known issues

     

    * If the IPN reply from PayPal fails, then no order emails are sent, no stock is updated and the order status is not updated.

     

    This could be why we are not receiving order emails. Just a thought.

     

    Gary


  4. I just noticed something about google xml sitemaps that seems little sneaky to me. At the bottom of the sitemapindex.xml page you will notice that there are links.

     

    These links are to other sites that have to do with site maps and not necessarily this contrib ( as far as I could see). It seems to me that this would drive these web sites rank way up because every time google looks through our site map it finds these links which is one of the main things (relevant links to your site from other sites) google looks at.

     

    I would not have a problem with this if it were made clear in the installation notes AND if the sites that are linked would reciprocate the links. Otherwise, I feel like I have been a little taken advantage of.

     

    I just wanted to point that out in case others might feel the same way and wanted to do something about it.

     

    Gary


  5. I don't know why this got posted twice. Something was going on with the OSC Site?????

     

    Anyway, the above code does not work. It seems to return true no matter what the calling page is. I assume that it has something to do with the code that I took from PHPNuke. I could use a little help if anyone knows what to do.

     

    Thanks,

     

    Gary

     

    OK, after three days and too many hours that I care to admit, I have a (maybe partial) solution. If after you have installed google xml sitemap and you run it and get back your xml generated link page you have links that look something like -

    http://gourmetsoiree.com/admin/configuration.php?gID=1&cID=11

    but you have Ultimate SEO URLS or some other SEO contrib that makes your URLs look more friendly for the search engines more like -

    http://gourmetsoiree.com/classic-hand-rolled-milk-chocolate-truffles-p-191.html

    . If you are able to turn on the OSCs

    Use Search-Engine Safe URLs (still in development)
    and get the results you want in the XML generated pages for google but can't leave
    Use Search-Engine Safe URLs (still in development)
    on all the time because you keep getting the
    Error! Unable to determine page link!
    on some of your pages. This should fix your problem until someone can come out with something better.

     

    In application_top.php find

    // make a connection to the database... now
     tep_db_connect() or die('Unable to connect to database server!');

    Directly after place this code:

    //Start  -  Set SEF's if this page was called from googlesitemap.php or sitemaps.index.php to true - gmltw April 21-07
    if(strpos($_SERVER['REQUEST_URI'], 'googlesitemap.php') || strpos($_SERVER['REQUEST_URI'], 'sitemaps.index.php')) {
    tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input('true') . "', last_modified = now() where configuration_id = 11 ");
    }
    //End  -  Set SEF's

     

    Then at the very end before the last ?> place this code:

    //Start  -  Set SEF's if this page was called from googlesitemap.php or sitemaps.index.php back to false - gmltw April 21-07
    if(strpos($_SERVER['REQUEST_URI'], 'googlesitemap.php') || strpos($_SERVER['REQUEST_URI'], 'sitemaps.index.php')) {
    tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input('false') . "', last_modified = now() where configuration_id = 11 ");
    }
    //End  -  Set SEF's

     

    That's it.

    What this will do is - check to see if google xml sitemap is running. If it is it will set the Search Engine friendly URLs to true just long enough to run the script and then it will set it back to false so that it doesn't fuddle with your other pages.

     

    As you may know, application_top.php is called every time a page is loaded so we can't very well let it turn the SEFs to true every time, that is why we check for the referring or rather in this case the page that begin the request for application_top.php. This way we can have it change only if the google xml sitemap was requester.

     

    The only thing I am not sure on is whether this will cover the case of CRON doing the calling. If you do not have CRON setup to automatically run your google xml sitemap then you shouldn't have anything at all to worry about. I will be trying to determine the CRON issue so if I figure it out, I'll post it here.

     

    Hope this helps someone.

     

    Gary


  6. OK, I tried setting the value to true in the sitemaps.index.php during run time but it seems that it is going to have to be done in the application_top.php instead.

     

    I remember that PHPNuke has a similar argument in it's code for verifying whether the page is being called from the index or not (it's a safety protocol). This is what I have now:

    /*  ___________________________________________________________________________
    _______  */
    //Start  -  Set SEF's if this page was called from googlesitemap.php gmltw April 21-07
     if (!eregi("googlesitemap.php", $_SERVER['PHP_SELF'])) {
    tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input('true') . "', last_modified = now() where configuration_id = 11 ");
     } elseif (!eregi("sitemaps.index.php", $_SERVER['PHP_SELF'])) {
    tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input('true') . "', last_modified = now() where configuration_id = 11 ");
    }else{
    // Do nothing
    }
    //End  -  Set SEF's if this page was called from googlesitemap.php gmltw April 21-07
    /*  ___________________________________________________________________________
    _______  */

     

    I placed this directly after the

    // make a connection to the database... now
     tep_db_connect() or die('Unable to connect to database server!');

    in application_top.php and again at the end before the closing ?> except the one before the closing ?> was set to false instead of true.

     

    It works when I am clicking on it from within the Admin Panel under Tools\google site maps but I don't know if it will work when called from CRON. I was hoping that when it is called from CRON that the sending file would be sitemaps.index.php but I have no idea.

     

    Can anyone help me with the CRON issue. That is the main one because I need to leave the SEF's set to false all of the time except when the google site maps are generated. Since most of us have CRON setup to do this on regular intervals we need this to indentify calls from CRON as well. I am thinking that the elseif statement will not accomplish this task because of where it is checking to see where it came from.

     

    Anyone have any ideas?

     

    Also, I am sure that someone that knows the proper syntax might be able to clean my code up a bit. I know that you should be able to have this be one if statement with or in the first conditional statement. instead of splitting it up into if and elseif. If anyone knows how to do this it would more streamline this code.

     

    Thanks,

     

    Gary

    I don't know why this got posted twice. Something was going on with the OSC Site?????

     

    Anyway, the above code does not work. It seems to return true no matter what the calling page is. I assume that it has something to do with the code that I took from PHPNuke. I could use a little help if anyone knows what to do.

     

    Thanks,

     

    Gary


  7. Well, the solution wasn't a complete success I am sorry to say. I am having a problem with getting an error "Unable to determine the page link!" Which is associated with having "Use Search-Engine Safe URLs (still in development)" set to true on a few pages. They are generally not the main pages or product pages so I haven't found the correlation.

     

    The only reason I need this set to true is for this contrib.

     

    So I was wondering, why can't we set the "Use Search-Engine Safe URLs (still in development)" to true on the fly in the file sitemaps.index.php and then back to false when it has finished it's magic?

     

    I would try this but I am not exactly familiar with PHP syntax. Can anyone give me a little code to help me on my way and I'll try it out? If someone could give me the proper code I think I can figure out where to put it. This would fix all of my problems with this mucking up the rest of my store.

     

    Thanks for a great contrib!

     

    Gary

     

    OK, I tried setting the value to true in the sitemaps.index.php during run time but it seems that it is going to have to be done in the application_top.php instead.

     

    I remember that PHPNuke has a similar argument in it's code for verifying whether the page is being called from the index or not (it's a safety protocol). This is what I have now:

    /*  ___________________________________________________________________________
    _______  */
    //Start  -  Set SEF's if this page was called from googlesitemap.php gmltw April 21-07
     if (!eregi("googlesitemap.php", $_SERVER['PHP_SELF'])) {
    tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input('true') . "', last_modified = now() where configuration_id = 11 ");
     } elseif (!eregi("sitemaps.index.php", $_SERVER['PHP_SELF'])) {
    tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input('true') . "', last_modified = now() where configuration_id = 11 ");
    }else{
    // Do nothing
    }
    //End  -  Set SEF's if this page was called from googlesitemap.php gmltw April 21-07
    /*  ___________________________________________________________________________
    _______  */

     

    I placed this directly after the

    // make a connection to the database... now
     tep_db_connect() or die('Unable to connect to database server!');

    in application_top.php and again at the end before the closing ?> except the one before the closing ?> was set to false instead of true.

     

    It works when I am clicking on it from within the Admin Panel under Tools\google site maps but I don't know if it will work when called from CRON. I was hoping that when it is called from CRON that the sending file would be sitemaps.index.php but I have no idea.

     

    Can anyone help me with the CRON issue. That is the main one because I need to leave the SEF's set to false all of the time except when the google site maps are generated. Since most of us have CRON setup to do this on regular intervals we need this to indentify calls from CRON as well. I am thinking that the elseif statement will not accomplish this task because of where it is checking to see where it came from.

     

    Anyone have any ideas?

     

    Also, I am sure that someone that knows the proper syntax might be able to clean my code up a bit. I know that you should be able to have this be one if statement with or in the first conditional statement. instead of splitting it up into if and elseif. If anyone knows how to do this it would more streamline this code.

     

    Thanks,

     

    Gary


  8. Well, the solution wasn't a complete success I am sorry to say. I am having a problem with getting an error "Unable to determine the page link!" Which is associated with having "Use Search-Engine Safe URLs (still in development)" set to true on a few pages. They are generally not the main pages or product pages so I haven't found the correlation.

     

    The only reason I need this set to true is for this contrib.

     

    So I was wondering, why can't we set the "Use Search-Engine Safe URLs (still in development)" to true on the fly in the file sitemaps.index.php and then back to false when it has finished it's magic?

     

    I would try this but I am not exactly familiar with PHP syntax. Can anyone give me a little code to help me on my way and I'll try it out? If someone could give me the proper code I think I can figure out where to put it. This would fix all of my problems with this mucking up the rest of my store.

     

    Thanks for a great contrib!

     

    Gary

     

    OK, I tried setting the value to true in the sitemaps.index.php during run time but it seems that it is going to have to be done in the application_top.php instead.

     

    I remember that PHPNuke has a similar argument in it's code for verifying whether the page is being called from the index or not (it's a safety protocol). This is what I have now:

    /*  ___________________________________________________________________________
    _______  */
    //Start  -  Set SEF's if this page was called from googlesitemap.php gmltw April 21-07
     if (!eregi("googlesitemap.php", $_SERVER['PHP_SELF'])) {
    tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input('true') . "', last_modified = now() where configuration_id = 11 ");
     } elseif (!eregi("sitemaps.index.php", $_SERVER['PHP_SELF'])) {
    tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input('true') . "', last_modified = now() where configuration_id = 11 ");
    }else{
    // Do nothing
    }
    //End  -  Set SEF's if this page was called from googlesitemap.php gmltw April 21-07
    /*  ___________________________________________________________________________
    _______  */

     

    I placed this directly after the

    // make a connection to the database... now
     tep_db_connect() or die('Unable to connect to database server!');

    in application_top.php and again at the end before the closing ?> except the one before the closing ?> was set to false instead of true.

     

    It works when I am clicking on it from within the Admin Panel under Tools\google site maps but I don't know if it will work when called from CRON. I was hoping that when it is called from CRON that the sending file would be sitemaps.index.php but I have no idea.

     

    Can anyone help me with the CRON issue. That is the main one because I need to leave the SEF's set to false all of the time except when the google site maps are generated. Since most of us have CRON setup to do this on regular intervals we need this to indentify calls from CRON as well. I am thinking that the elseif statement will not accomplish this task because of where it is checking to see where it came from.

     

    Anyone have any ideas?

     

    Also, I am sure that someone that knows the proper syntax might be able to clean my code up a bit. I know that you should be able to have this be one if statement with or in the first conditional statement. instead of splitting it up into if and elseif. If anyone knows how to do this it would more streamline this code.

     

    Thanks,

     

    Gary


  9. WOW! I can't believe it! It actually worked. :D

     

    Not that I doubted you, Jon, it's just that I have tried to set my Search-Engine Safe URLs to on several times through out the last two months as I have been building our site and every time that I have tried I would always get the errors that most talk about associated with having it on. I'm scratching my head here. I wonder which of the last three or four contribs I added fixed the problem? This is great! It is showing the links just as I want them now.

     

    Thank you very much!

     

    Gary

     

    Well, the solution wasn't a complete success I am sorry to say. I am having a problem with getting an error "Unable to determine the page link!" Which is associated with having "Use Search-Engine Safe URLs (still in development)" set to true on a few pages. They are generally not the main pages or product pages so I haven't found the correlation.

     

    The only reason I need this set to true is for this contrib.

     

    So I was wondering, why can't we set the "Use Search-Engine Safe URLs (still in development)" to true on the fly in the file sitemaps.index.php and then back to false when it has finished it's magic?

     

    I would try this but I am not exactly familiar with PHP syntax. Can anyone give me a little code to help me on my way and I'll try it out? If someone could give me the proper code I think I can figure out where to put it. This would fix all of my problems with this mucking up the rest of my store.

     

    Thanks for a great contrib!

     

    Gary


  10. Gary,

     

    Would you be willing to share your paypal_ipn.php (from the \includes\modules\payment directory) and ipn.php (from the \ext\modules\payment\paypal_ipn directory)?

     

    The install instructions for IPN says:

     

    MVS works just fine in my site, but when I set up the IPN mod the MVS stops working. I have gone through the MVS 1.1 installation routine and taken the instructions for updating checkout_process.php and have applied those changes to the paypal_ipn.php and ipn.php files, however I can't figure out where to put the very first update form checkout_process.php

     

    ===================
    Find Lines 42, 43 & 44
    ===================
    
    // load the selected shipping module
     require(DIR_WS_CLASSES . 'shipping.php');
     $shipping_modules = new shipping($shipping);
    =============
    Replace With
    =============
    
    //MVS start
       // load the selected shipping module
      if (($total_weight > 0 ) || (SELECT_VENDOR_SHIPPING == 'true')){
           include(DIR_WS_CLASSES . 'vendor_shipping.php');
         } elseif (($total_weight > 0 ) || (SELECT_VENDOR_SHIPPING == 'false')){
           include(DIR_WS_CLASSES . 'shipping.php');
         }
         $shipping_modules = new shipping($shipping);	
         //MVS End
    
    

     

    any help is greatly appreciated.

    Sure, no problem. PM me your Email and I'll send you the files.

     

    Gary


  11. Check the language files for the kg/lb thing. I am not sure about where else that may be changed right now, there is something in the back of my mind about it, but I can't quite put a finger on it.

    The handling fee: do a search for it, you should find some code posted some pages back, several of the modules did not end up with the right code to add the vendor handling fee.

     

    Good luck, Craig :)

     

    Hi Craig,

    I searched all of the language files and every php file in my entire store for any occurrence of the two letters kg. The only result I received was a partial match in the site certificate key. :blink:

     

    Not only did I search the entire store but I also physically reviewed all of the code that I could think of that might have anything to do with this. In every place that you think you would find it there was lb. instead (just like I want it).

     

    I also searched my database for the off chance that it might be in there somewhere. No luck there either.

     

    This one has me stumped. It doesn't make any sense. I am not going to loose sleep over it though. It will just have to stay until I stumble across it some day or someone happens to tell me where it is hiding. <_<

     

    I am searching for the handling charge post, thanks for the response.

     

    If I ever figure out where the weight is being set, I'll share the news. :thumbsup:

     

    Gary


  12. So you do have to make the checkout_process.php changes from MVS in Paypal IPN? I've just checked it at a glance, but a lot of the changes suggested don't even seem to be in the 2 files from Paypal IPN? Is it ok to bypass some of the changes, or are they important?

     

    I am really not sure about the changes you are talking about. I have slept since I did this install and I really don't remember that far back. :blink: I know that when I installed it I just followed the instructions that came with the OSC PayPal IPN and I don't remember making any modifications to it from MVS. Not saying that I didn't, I just don't remember doing it. What I do remember and know is (because I keep a change log) I installed the MVS contribution before I installed any other contrib. I found it easier this way for me. I did not install the PayPal IPN contrib until much later in the game and the more I think about it the more I am pretty sure I did not make any mods to the PayPal IPN. I don't think you have to. Hopefully if I am wrong someone who knows will correct us. I am not having any issues with the OSC PayPal IPN working with my store. If you would like, I can PM you the code from my checkout_process.php file.

    I got that fixed easily. You just have to make sure Shipping is enabled under Order Totals, and it will show.

    I think I must have misunderstood what you were asking for. I thought you wanted something that gave a total of all of the shipping charges at the bottom of the shipping page. Sorry!


  13. @Gary:

     

    I think there is a problem with your SQL, the mi.languages_id=... in the left join sounds strange to me, this part should be in the WHERE clause I think. If you want to see what STS put in the placeholders, you can add sts_debug=debug in the URL: all placeholders and their value will be displayed in the bottom of your page so you can see if the product ID exists in $sts->template['view_more_info'].

    From where you call catalog/includes/modules/sts_inc/view_more_info.php? Have you made a new module based on sts_popup_image.php module?

     

    @Sarah:

    Two solutions: upgrade STS to the latest version (4.5 SP2) or create the missing file, it can just be an empty file.

     

    - Rigadin2

    Since this is in a Pop up, how can I go about getting it to load with the address bar so that I can enter the debug code? I guess I could add it to the filenames link (or where ever it was I named that link).

     

    It's late and my eyes are beginning to cross but I am going to have another look at the query tomorrow. I agree with you on the language being in the join. Not sure why I did that? >_< Maybe it'll come to me after I have slept a little. Maybe!

     

    Yes on the sts_popup_image.php module

     

    Can you verify that I am covering all bases with where I have my code located. I have a view_more_info.php located in the catalog/ folder which will work if STS is set to false.

     

    A copy of sts_pop_up.php called sts_view_more_info.php and modified so that the class is correct and all variables are correctly named.

     

    A file that I created for the sts_inc folder where I set the values of my sts tags. Similar to the pop_up.php file in the sts_inc folder but with different variables and a different query (of course).

     

    The template for my view_more_info.php file located in my template folder - catalog/includes/sts_templates/gourmet_soiree/ called view_more_info.php.html.

     

    If I am understanding the way this is working, the catalog/includes/module/sts_inc/view_more_info.php should be taking the place of the catalog/view_more_info.php if I have it turned on in Admin (which is controlled by the file located in the sts folder). Is that correct?

     

    Do I have to keep the view_more_info.php located in the catalog/ for it to work without errors?

     

    Does this look like I have everything covered or have I missed something as far as files go?

     

    Thanks for your help!

     

    Gary


  14. Thank you Rigadin2!

     

    This is what I needed. I have run into one problem that I am unfamiliar with. I need to pass a variable from Product page to the pop up page where I conduct my query so that I can match the info with the Vendor. Here is what I have (in my sts_inc/product_info.php file):

     

    	$sts->template['view_more_info'] = '<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_VIEW_MORE_INFO, '', 'SSL', 'products_id=' . $products_id) . '\')">' . HEADER_TITLE_VIEW_MORE_INFO . '</a>';
    $sts->template['url_view_more_info'] = tep_href_link(FILENAME_VIEW_MORE_INFO, '', 'SSL');

     

    I think I have gotten everything else but this. The pop up processes the tags correctly because they are not showing as text (just blank where the info should be). I placed some text beside each tag so that I could tell where it should be and it shows up. So the only other thing that I can figure is there is no data to return because there is no match. The only reason there would not be a match is if the $products_id is not getting sent over to the query in the pop up. Is there a way to see what value a variable has like you can in Visual Basic? Can I determine the value of $product_id from within the pop up?

     

    Thanks,

     

    Gary

    I have went over and over the code in all of the effected files and I can not for the life of me figure out why the query is not picking up the Product ID variable (if that is indeed the problem even.).

     

    I changed

    $sts->template['view_more_info'] = '<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_VIEW_MORE_INFO, '', 'SSL', 'products_id=' . $products_id) . '\')">' . HEADER_TITLE_VIEW_MORE_INFO . '</a>';
    $sts->template['url_view_more_info'] = tep_href_link(FILENAME_VIEW_MORE_INFO, '', 'SSL');

     

    to read:

    $sts->template['view_more_info'] = '<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_VIEW_MORE_INFO, '', 'SSL', 'pID=' . $products_id) . '\')">' . HEADER_TITLE_VIEW_MORE_INFO . '</a>';
    $sts->template['url_view_more_info'] = tep_href_link(FILENAME_VIEW_MORE_INFO, '', 'SSL');

    which is the same variable that the POP up image uses for product Id. I then also changed it in the query to reflect the new value.

     

    Query in the file that I put in catalog/includes/modules/sts_inc/view_more_info.php (same place the pop_up.php is):

      $manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_text, m.manufacturers_image, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int)$languages_id . "'), " . TABLE_PRODUCTS . " p  where p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and p.manufacturers_id = m.manufacturers_id");
    
     $maninfo = tep_db_fetch_array($manufacturer_query);
    
    $sts->template['man_id'] = $maninfo['manufacturers_id'];
    $sts->template['man_url'] =  $maninfo['manufacturers_url'];
    $sts->template['man_info'] = $maninfo['manufacturers_text'];
    $sts->template['man_name'] = $maninfo['manufacturers_name'];
    $sts->template['man_image'] = tep_image(DIR_WS_IMAGES . $maninfo['manufacturers_image'],'','','', 'name="manimage"');

     

    Perhaps there is a problem with my SQL? Does anyone see anything that needs to be changed?

     

    Can someone tell me how I can find out what the value of each variable is during run time? That would help if I could actually find out what the value is of each variable in my query.

     

    Thanks,

     

    Gary


  15. The file in includes/modules/sts is used to detect which template is to be used, and contains the logic to be visible in admin so you can turn it on/off. To create another popup page, copy the sts_popup_image.php and rename it according to your own popup name. Class must be renamed too. At the end of the file are function needed for admin, parameters names must be changed too.

     

    The file in includes/modules/sts_inc is where the placeholders are created.

     

    The template file, I guess you know what it is.

     

    - Rigadin2

    Thank you Rigadin2!

     

    This is what I needed. I have run into one problem that I am unfamiliar with. I need to pass a variable from Product page to the pop up page where I conduct my query so that I can match the info with the Vendor. Here is what I have (in my sts_inc/product_info.php file):

     

    	$sts->template['view_more_info'] = '<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_VIEW_MORE_INFO, '', 'SSL', 'products_id=' . $products_id) . '\')">' . HEADER_TITLE_VIEW_MORE_INFO . '</a>';
    $sts->template['url_view_more_info'] = tep_href_link(FILENAME_VIEW_MORE_INFO, '', 'SSL');

     

    I think I have gotten everything else but this. The pop up processes the tags correctly because they are not showing as text (just blank where the info should be). I placed some text beside each tag so that I could tell where it should be and it shows up. So the only other thing that I can figure is there is no data to return because there is no match. The only reason there would not be a match is if the $products_id is not getting sent over to the query in the pop up. Is there a way to see what value a variable has like you can in Visual Basic? Can I determine the value of $product_id from within the pop up?

     

    Thanks,

     

    Gary


  16. I have just updated this excellent contribution..

     

    But I have found one more problem, other listed previously, that occurs on my store when viewing with firefox:

     

    1. the :hover class does not work on any CSS buttons created with tep_image_button, only with butttons created using tep_image_submit.

     

    2. the cursor: ; CSS attribute does not work with buttons created by tep_image_submit but does work with buttons created using tep_image_button

     

    Is anyone else experienceing the same? Or has anyone already aded a fix for this to thier site?

     

    Please help me fix this as its driving me mad, and making my site look very messy!!

     

    Thanks in advance,

     

    scottman

    I have noticed a similar problem. the tep_image_submit buttons center text correctly but the tep_image_buttons skew the text to the top of the button. Basically anything that is a link rather than a submit is messed up.

     

    Anyone have any idea?

     

    Gary


  17. I really hate to repost but I think that sometimes a post can get lost in the shuffle. I want repost this again, promise.

    Gary

    OK, I am having a little trouble figuring out where I change the standard of measurement. I have looked everywhere I could think of to try and figure out where it is being set. I have looked in every language file in the vendor shipping modules, I have searched my entire database in MySQL for the term that is showing up and I have physically looked through any table that seemed to be associated with vendor shipping. I did a site wide search through every file in my code (local side) with Dream Weaver's Find and Replace and I still have not found it. Not to mention that the only thing I can find in the forums that relates to this sends me to the places I have already looked. I hope someone can help me out here.

     

    The problem is, when you get to checkout_shipping.php during the checkout process it is showing the weight in kg instead of lb. . Only with the products from the vendor that is using the standard rates shipping module (previously known as zones). I understand that it is not really pounds or kg or anything, it's just a number that is pulled from the product's data from where you have entered it's weight in the admin products page. That doesn't make it any less confusing for the customer for me to know that and doesn't make it look any more professional to be displaying the incorrect weight. It needs to display correctly and I can not find where to change it. I have spent the better part of three days trying to find this on my own. I have added the standard rates shipping module for MVS. The zones module that came with MVS was not working at all until I added the standard rates module (which replaces the zones module). This seems to be where the problem is. Does anyone have any ideas?

     

    In addition to this, the handling fee is not being added to the zones shipping price. I am sure (well, maybe not so sure) this is a separate issue but since I was posting this I thought I would throw this one in as well. :-"

     

    Thanks!

     

    Gary


  18. I am in need of a little guidance. I have attained a pretty good grasp of the STS Template system (I think :blink: ) but I believe that what I am wanting to do may be a little out of the ordinary everyday STS users need. I want to create a custom pop up that I can control with an STS Template that I create for it. I have already managed to create the code required to show what I want to show in the Pop up and I have created a tag to call the link needed for someone to click on it to call the pop up. I am stuck at this point however.

     

    I have this file located at catalog/includes/boxes/veiw_more_info.php

     

    <?php
    /*
     $Id: view_more_info.php,v 1.11 2007/03/20 16:00:00 $
    
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2007 osCommerce
    
     Released under the GNU General Public License
    
     */
    //Start Modification for link to show manufacturers info in a pop-up window.
    			if (isset($HTTP_GET_VARS['products_id'])) {
    			$manufacturer_query = tep_db_query("select m.manufacturers_id, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int)$languages_id . "'), " . TABLE_PRODUCTS . " p  where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id");
    			if (tep_db_num_rows($manufacturer_query)) {
    			  $manufacturer = tep_db_fetch_array($manufacturer_query);
    
    		$manufacturer_info_string = '<center>';
    			  if (tep_not_null($manufacturer['manufacturers_id'])) $manufacturer_info_string .= '<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_MANUFACTURER_INFO, 'products_id=' . $products_id) . '\')">' . TEXT_MANUFACTURER_INFO_SHIPPING_LINK . '</a> </td> </tr>';
    		'';
    			  $info_box_contents = array();
    			  $info_box_contents[] = array('text' => $manufacturer_info_string);
    
    			  new infoBox($info_box_contents);
    			  '</center>';
    			}
    		  }
    //End Modification for link to show manufacturers info in a pop-up window.
    ?>

     

    I added this code to the file catalog/includes/modules/sts_inc/product_info.php . It is the only way I could get it to be able to call a tag from with in the catalog/includes/sts_templates/gourmet_soiree/content/product_info.php.html template file.

     

    // Start more info box that shows under the product that opens a pop up with the manufacturers info in it.
     $sts->start_capture();
     include(DIR_WS_BOXES . 'view_more_info.php');
     $sts->stop_capture('viewmoreinfo', 'box'); // Get manufacturer info box (empty if no product selected)
      $template_pinfo['viewmoreinfo']= $sts->template['viewmoreinfo']; // Put it in the product info
    // End more info box that shows under the product that opens a pop up with the manufacturers info in it.

     

    Now all of this works great and I am somewhat happy with the way it shows up. Problem comes when I want to format the way the pop up looks. The tables are not resizing correctly and neither is the window for that matter but I can live with the window not resizing.

     

    What I would like to do is create the same structure that the popup_image.php has but I just can't seem to wrap my head around everything that needs to be done. By following the pop_up I can see that I am going to have to create three files. One in the STS folder, one in the STS_Inc folder and the template file in my template folder. Can anyone give me any direction on how I would go about that from the code that I have pasted above? I am gathering the information from different tables and rows when displaying the view_more_info pop up or I would just coppy the pop_up files and rename them. Sorry for the long post!

     

    You can see how this works now if you want if it will help. Just have a look at any product in our store and click on the link below the product description that says "click here for more information on this manufacturer blah blah blah ....".

    This site is live. here is a good example http://gourmetsoiree.com/chocolate-assortment-p-170.html

     

    Even if you don't have the whole answer I would be thrilled to have a part. Sooner or later it will come together.

     

     

    Thanks,

     

    Gary


  19. @gmltw: Nevermind, I solved it the easy/cheap way. I use the Paypal Autoreturn feature to get my customers back to the site and complete the order ;)

     

    I have another question related to MVS:

     

    How do I show the total shipping fees on the Order Confirmation page?

     

    jangoF: You should double check to be sure that if a customer leaves the PayPal area without returning to your site that you still get a notice of payment and your order processes. I think I remember reading a few places where people were having a problem with that.

     

    The OSC PayPal IPN contrib http://www.oscommerce.com/community/contributions,2679 was really easy to install (well documented, and very few if any (can't remember specifics) modifications to the store files) and took care of all of the problems I was having with PayPal including the customer not returning to your store issue. Just an FYI.

     

    I don't know about the shipping totals. I would like to know about that as well. I think there may be a contrib/mod for that. Not sure though.

     

    Gary


  20. OK, I am having a little trouble figuring out where I change the standard of measurement. I have looked everywhere I could think of to try and figure out where it is being set. I have looked in every language file in the vendor shipping modules, I have searched my entire database in MySQL for the term that is showing up and I have physically looked through any table that seemed to be associated with vendor shipping. I did a site wide search through every file in my code (local side) with Dream Weaver's Find and Replace and I still have not found it. Not to mention that the only thing I can find in the forums that relates to this sends me to the places I have already looked. I hope someone can help me out here.

     

    The problem is, when you get to checkout_shipping.php during the checkout process it is showing the weight in kg instead of lb. . Only with the products from the vendor that is using the standard rates shipping module (previously known as zones). I understand that it is not really pounds or kg or anything, it's just a number that is pulled from the product's data from where you have entered it's weight in the admin products page. That doesn't make it any less confusing for the customer for me to know that and doesn't make it look any more professional to be displaying the incorrect weight. It needs to display correctly and I can not find where to change it. I have spent the better part of three days trying to find this on my own. I have added the standard rates shipping module for MVS. The zones module that came with MVS was not working at all until I added the standard rates module (which replaces the zones module). This seems to be where the problem is. Does anyone have any ideas?

     

    In addition to this, the handling fee is not being added to the zones shipping price. I am sure (well, maybe not so sure) this is a separate issue but since I was posting this I thought I would throw this one in as well. :-"

     

    Thanks!

     

    Gary


  21. first of all my stylesheet does not have this code and next when I change my stylesheet font sizes and color nothing happens - however when I uninstall sts4 I notice that the stylesheet did change the fonts on the lang\eng\index.php - what am I missing? do I also need to make sure that the correct code is in the head of my sts4 template to allow the style sheet to work?

     

    Thanks for your help

    Jon

     

    I can not be sure without looking at your files but more likely than not it sounds like the font is being set in your STS template. Which is OK but in my opinion it is better to make it so that the style sheet does the changes. Can you paste the code from your catalog/includes/sts-templates/YOUR_TEMPLATE/index.php.html (Where YOUR_TEMPLATE is the name of your template you are using, could be full or basic if you have not created one. ) file for us to have a look at.

     

    Gary


  22. Okay I figured out my pop up problem I just need to figure out the font color now for links thank you

    You should be able to change your font colors in your stylesheet.css file located in your root or catalog folder. Just look for the A class like this. Just change to the color you want to.

     

    /*This is the Default Hyperlink Style with brown text and underlines*/
    A {
    color: #731F17;
    text-decoration: underline;
    font-weight: bolder;
    }
    
    /*This is the Default ACTIVE Hyperlink Style when a mouse is hovering over it, with dusty blue text and no underline*/
    
    A:hover {
     color: #6666CC;
     text-decoration: none;
     font-weight:normal;
    }

     

    If for some reason this does not change your link color then you have it set in another place as well (which is not needed).

     

    Good luck,

     

    Gary


  23. To gmltw

    Try setting "true" on Admin, Configuration, My Store, Use Search-Engine Safe URLs (still in development). That workes for me, and re test the sitemap creation in its section.

    Good luck

    Jon

    WOW! I can't believe it! It actually worked. :D

     

    Not that I doubted you, Jon, it's just that I have tried to set my Search-Engine Safe URLs to on several times through out the last two months as I have been building our site and every time that I have tried I would always get the errors that most talk about associated with having it on. I'm scratching my head here. I wonder which of the last three or four contribs I added fixed the problem? This is great! It is showing the links just as I want them now.

     

    Thank you very much!

     

    Gary


  24. Hi

    I need help to get my NIMIT SEF URLs in my google sitemap.

    I used this Google XML Sitemap w/ Admin together with NIMIT SEF

    and result is that in the google sitemap I have the standerd OSC URLs.

     

    Please help or provide alternative that offers SEF URLs and sitemap.

     

    ------

    Example:

     

    Now I have in my sitemap:

    http://mydomain.com/product_info.php?products_id=15

     

    What I really want in my sitemap is:

    http://mydomain.com/product/Courage_Under_Fire.html

    I have the same concerns. My XML data is just like yours. http://gourmetsoiree.com/product_info.php?products_id=111

    When I click on it it takes me to the correct page and the url shows the Ultimate urls like it should. My only concern is how this link is going to look after google processes it? Am I going to be seeing a link in google formatted like http://gourmetsoiree.com/product_info.php?products_id=111 or will it get the correct link http://gourmetsoiree.com/milk-chocolate-go...ates-p-111.html when it crawls my site?

     

    Anyone know?

     

    Gary

×