Jump to content

Nik Grey

Member
  • Posts

    274
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Nik Grey

  1. I just disabled my Paypal IPN a few minutes ago as I refunded a payment to someone (Courier Smashed a G5 Mac case I sent to the customer - I have been refunded by courier) and got a message (copy of email sent to customer) from paypal thanking me for the order..

    The email relates to 'Linklok' which is a system I used to use in the olden days.

     

    I was just searching for the correct url to enter into the Paypal IPN area for cubecart but it seems we don't need to enter one :)

  2. Hi All,

     

    I have had a change of heart with regard to my pricing and want to discount certain categories, I am aware that there is a 'Global Discount' option but I don't want to knock everything down in price - just Mugs, as I want to have them at £10 delivered - a total price rather that the price for the Mug and then postage on top.. I will have the mugs at a price and make sure the shipping always makes it up to my £10 target.

     

    So, I am looking for a way to change all the prices of a certain product - Mugs.

     

    Would I be better doing this in the database ? as going through each product via admin will take a long time !

     

     

  3. It's fixed,

     

    Just about the same code as Brian suggested for the main.php file:

     

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/headjs/0.99/head.min.js"></script>

     

    Just the other way around ! Why does One work and the other doesn't ? this is the reason I cant get my head around coding - it's not logical to me.

     

    I'm happy now :)

  4. I just sent you a list of browsers and versions with the problems associated with each one. Also noticed that the Firefox on my Mac does not show the Green button sometimes :(

     

    I'm never sure if I am looking at the correct part of Firebug but since we are looking for errors I am in Console/Errors:

     

    firebug1.jpg

  5. There is still something I have not tried - in post 5 >Here there is a suggestion which I did not get the chance to try as I thought we had fixed this issue !

     

    Here it is:

     

     

    I'd go as far as to say that it's not unreasonable to expect a skin to not rewrite the javascript calls so that it, and it exclusively has access to jquery... that I think it what it seems to be doing anyhow.. not seen the particular script before, but essentially it seems to be making jquery and all the files the skin uses load only when the document has loaded, by storing them in an object which has a ready function of its own, presumably for more optimal page loads.

     

    Loses out on a fair bit of flexibility doing that though, and sortof breaks our one completely. In an attempt to make the code changes as minimal as possible I went for a purely plugin based route where the js was loaded via the skin

     

    Have a try of this Nik:

    On the vector skin, there's a file in /js/ called application.js, at the bottom there's this bit:

     

    {jquery: '//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'},

     

    You can try commenting that out:

     

    // {jquery: '//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'},

     

    Then just grab the same jquery call from one of the standard skin files (main.php), and try just bunging it in the vector header?

     

    I'm not 100% if the fix will work unfortunately.. it's plausible that whatever is going on in the header object, it might try and reference the js by the jquery parameter it's sending with the filename, in which case it'll just break everything no doubt. Won't hurt to try though, you can always set it back how it was

     

    I'm unsure about this bit:

     

    "Then just grab the same jquery call from one of the standard skin files (main.php), and try just bunging it in the vector header?"

     

    What does a jquery call look like and where is the vector Header?

     

     

    The buttons appear, and work on my version of Firefox (on my Mac) - they appear but dont work in Chrome, and in Safari the (the buttons) don't appear at all !

    And Brian can at least see the buttons on his machine - Dint know if they work though.

  6. I understand what you are saying Brian - such a shame as I love the visual appeal.

     

    I'm stuck between having a nice looking site who's checkout routine is perfect ( but a crucial tool that doesn't work) or a standard look with tools that do work but a checkout which confuses people :(

     

    Either way, at this moment I still cant achieve what I set out to do - the way things stand :(

     

    Thanks for your help again, I know you put a lot of time into my problems.

  7. ok, just changing that Dollar sign to 'head.ready" has it working on Safari and Chrome now - I didnt get a chance to add the  "{literal} and {/literal}" anywhere as there is no "<script type="text/javascript">" to be seen !

     

    I now have 2x 'Select File' buttons on each product - and neither of those seem to work..  In Safari or Chrome yet they continue to work in Firefox !

     

    Maybe it's this 'Literal' bit that's missing?

  8. I think the main.php file you refer to is at:

     

    /greyprint.co.uk/skins/vector/templates

     

    .. so I search that for:

    <script type="text/javascript">
    /*jslint unparam: true */
    /*global window, $ */
    
        var sOptString = "Upload Image";
    

    Which is not there ! So I am stuck already - unless I found the wrong main.php file ?

     

     

     

    This is what is at the end of my main.php file:

    <!-- Plugin JavaScripts -->
    		{foreach from=$JS_SCRIPTS key=k item=script}
      <script type="text/javascript" src="{$STORE_URL}/{$script|replace:'':'/'}"></script>
      {/foreach}
      {if !empty($IMAGE_UPLOAD_JS)}{$IMAGE_UPLOAD_JS}{/if}
      
    		<!-- JanRain JavaScript -->
    		{if isset($JANRAIN)}{$JANRAIN}{/if}
    
    		<!-- Live Help JavaScript -->
    		{if isset($LIVE_HELP)}{$LIVE_HELP}{/if}
    	
    		<!-- EU Cookie Compliance -->
    		{if $COOKIE_DIALOGUE}
    			<form id="cookieControl" action="{$VAL_SELF}" style="display: none;" method="POST">
    				<input type="checkbox" name="accept_cookies" checked="checked" value="1" />
    				<input type="text" name="accept_cookies_submit" value="{$LANG.common.continue}" />
    			</form>
    			<script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
    			<script src="{$STORE_URL}/skins/{$SKIN_FOLDER}/js/libs/cookieControl-4.1.min.js"></script>
    			{literal}
    				<script type="text/javascript">//<![CDATA[
    					cookieControl({
    						introText: '<p>This site uses some unobtrusive cookies to store information on your computer.</p>',
    						fullText: '<p>Some cookies on this site are essential, and the site won't work as expected without them. These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking on simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of the site. If you're not happy with this, we won't set these cookies but some nice features of the site may be unavailable.</p><p>By using our site you accept the terms of our Privacy Policy.</p>',
    						position: 'left', // left or right
    						shape: 'triangle', // triangle or diamond
    						theme: 'light', // light or dark
    						startOpen: true,
    						autoHide: 6000,
    						subdomains: true,
    						onAccept: function() {
    							$('#cookieControl').submit();
    						},
    						onReady: function(){},
    						onCookiesAllowed: function(){},
    						onCookiesNotAllowed: function(){},
    						countries: '' // Or supply a list ['United Kingdom', 'Greece']
    					});
    				//]]></script>
    			{/literal}
    		{/if}
    	
    		<!-- Debugging -->
    		{if $fusion->get('smarty_debug')} {debug} {/if}
    		{if isset($DEBUG_INFO)} {$DEBUG_INFO} {/if}
    		
    		<!-- Used for styling CubeCart credits -->
    		<div class="credits-sep"></div>
    	</body>
    	</html>
    {else}
    	<!doctype html><html><head></head><body>Fusion Framework Required</body></html>
    {/if}
    

    As you were able to say 'Around 70 lines later" it seems like you are looking at a different file all together !

  9. I just tested this on a stock skin (tested the upload tool again) and it's working across all browsers.

     

    I did get a response from Homar as to the reason my Lettering Tool was not working (Brian helped me get that fixed) - I did send this to you Brian for your ref:

     

    The Vector theme does include JQuery. It does so through the head.js script (http://headjs.com/). If you scroll to the end of the /js/application.js file, you will see the following lines of code:

    =====
    /** Load Scripts **/
    head.js(
    {jquery: '//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'},
    {livequery: skin_path + '/js/plugins/jquery.livequery.min.js'},
    {outer: skin_path + '/js/plugins/jquery.outer.min.js'},
    {chosen: skin_path + '/js/plugins/jquery.chosen.min.js'},
    {bar: skin_path + '/js/plugins/jquery.bar.min.js'},
    {flexslider: skin_path + '/js/plugins/jquery.flexslider.min.js'}
    );
    =====

    This allows the various JavaScript assets to be loaded asynchronously as and when they are required. This principle is central to the optimization effort that I put into developing the theme. However, it means that whereas a developer would normally use the following code snippet to run JavaScript code when JQuery is ready:

    =====
    $(function() {
    // Code to be executed on page load goes here...
    });
    =====

    You now need to use the following:

    =====
    head.ready(function() {
    // Code to be executed on page load goes here...
    });
    =====

     

    ..So, it looks like he is telling me the changes I need to make ! The problem is I dont know what: "// Code to be executed on page load goes here..." is !

  10. ok, I guess I am going to have to close the entire Mugs section now until I get it fixed - I haven't made a single penny from the listed products as yet, this is probably the reason.

     

    I had a random bill from the people who made the tool earlier this month so I am reluctant to ask for more help :(

  11. Hi All,

     

    I had a couple of people tell me that there was no way to upload an image in some of my products - of course as soon as I checked with my machines I could see everything !

    I was away from home last night and noticed that indeed the buttons were not appearing ! panic set in...

     

    I am using the latest version of Firefox on a Mac running osx 10.9.1 - my iPad (V2) also shows these buttons.

     

    Obviously if my 'Image Upload' buttons dont appear nobody is going to be able to buy anything from my Cubecart - I have been selling a lot of 'Bespoke' designs but people are contacting me via email to set those up..

     

    So, if possible I would like to try to find out what the issue is - I cant ask the developer who created this as he will not be in work again until Monday, and this problem is causing me embarrassment..

     

    This tool was created using the Hooks - I am on version 5.2.8

     

    Here are some screen shots to to illustrate the problem:

     

    Firefox (Where is it working - the Green 'Select File' button)

    firefox-button.png

     

    Chrome (No Button)

    chrome-missing-button.png

     

    Safari (Missing Button)

    safari-missing-button.png

     

    So, where do I start ?

     

  12. What I did was start again, removed that entire category and its contents and re-did them all.. Now those keywords are no longer appearing where they shouldn't.

     

    I will be adding more to this category as soon as I get more stock so we will see if it happens again - it was so frustrating as I had just added that new product and told the world (with a link).. */*

     

    Since nobody else has commented or posted about this I will assume this was peculiar to my situation !

  13. I did a search of the forum and didn't find anything..

     

    I just added a new category today and a new product in that category - I see the main website keywords appearing where they are not supposed to.

     

    On this page: HERE

     

    I am not at home at the moment (Hospital Radio Day) but have looked around the admin area and cant see anything wrong !

     

    This is ONLY happening on the product added today in its new category (only on the product page as per the link above) !

     

    Firstly, hopefully you can see what I mean and second - I hope you can suggest what the problem is !

     

    The keywords that are appearing are the main keywords in 'Store Settings' !

     

    Also, I just noticed that these rogue keywords do not appear on the product page if I access that product page via the 'Latest Products' link on the index page ?

  14. I'm getting about 4 spam reviews a day (Only been open 4 days so I expect that number to grow unless I do something now).

     

    I did a quick search and found this edit to the .htaccess file - going to see if that works and if not will think about something else:

     

    ## File Security
    <FilesMatch ".(htaccess)$">
     Order Allow,Deny
     deny from 216.151.130.170
     Deny from all
    </FilesMatch>

     

     

    ... Just to let you know - this did not work :(

  15. I know I have posted a few times about the Vector skin, and 5.2.8 but as far as I am aware the problems I have been having are with a tool I had created (as it turns out, by people who didn't really understand cubecart as such)

     

    As I can't get my head around the code I keep asking for help with things that might seem trivial to many, there's not a lot I cant do for myself but coding continues to be a pain for me.

     

    I don't understand why even though I have I the settings set for 4x 'Latest Products' to be displayed on my index page only 3x actually appear and it's messing up the overall appearance of my page ! I have had a few people comment on this issue so would like to get it sorted if possible.

     

    I notice Firebug telling me:

    <div id="product-53" class="span3 product">

     

    latest-products-problem.jpg

     

    When I inspect One of these products borders - I'm assuming (you know what they say about the 'Assumption?) that the 'span3' denotes it's width, so - my logic suggests that changing this will make these narrower and allow another product to be shown - lining my Ducks up nicely !

     

    I tried making the overall width of the page another 50px wider but that didn't help - can we either make the padding between these boxes smaller or make the boxes themselves narrower (I would prefer to narrow the boxes if I had a choice) !

×
×
  • Create New...