klarabara
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Ultra Simple Paypal Shopping Cart] Choose shipping when paying?Sorry, so hard to explain with text, glad you tried to help!
I now changed so that the shipping doesnt show immediatly at least..
Forum: Plugins
In reply to: [WordPress Ultra Simple Paypal Shopping Cart] Choose shipping when paying?Thanks for a quick reply!
So I will add this in the shoppingcart?
I don’t want the shipping-price per item, i want to choose it, only, when I do the checkout…
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] "dropdown-button" with variationsStill cant get it to work and I think it is partly because this new dropdown button needs to also be the submit-button?
Also I get this error in the console:
TypeError: ‘undefined’ is not an object (evaluating ‘obj1.length’)This is the output of my button:
<div class="wp_cart_button_wrapper btn"> <form method="post" class="wp-cart-button-form" action="" style="display:inline" onsubmit="return ReadForm(this, true);"> <div class="btn-group"> <a name="variation1" onchange="ReadForm(this.form, false);" class="btn dropdown-toggle" data-toggle="dropdown" >Add to cart <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a value="S ">S </a></li> <li><a value=" M "> M </a></li> <li><a value=" L"> L</a></li> </ul> </div> <br /> <input class="btn" type="submit" value="Add to Cart" /> <input type="hidden" name="product" value="En helt ny" /> <input type="hidden" name="price" value="14" /> <input type="hidden" name="product_tmp" value="En helt ny" /> <input type="hidden" name="shipping" value="10" /> <input type="hidden" name="cartLink" value="https://localhost/wordpress/shop-merchandise/" /> <input type="hidden" name="addcart" value="1" /> </form> </div>
If I add a normal button below to submit it sends without the variation..
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] "dropdown-button" with variationsThankyou, I was hoping it would be that easy!
Out of curiousity:
Do I need to make my edits in the plugin-file or is this something I can put in my functions-file, for future updates I mean?*starstruck*
Forum: Fixing WordPress
In reply to: all from all categories except for one where I want only 5..Bummer.. I will see if I can get the jquery to fetch the info, thanks!
Forum: Fixing WordPress
In reply to: all from all categories except for one where I want only 5..I wrote the code like this:
echo '<li> <a href="'.home_url().'/?filter='.$category->slug.'" class="hidediv" title="'.$category->name.'" data-filter="' . $category->slug. '">' . $category->name.'</a> </li> ';
And now I can put the url in the adress-field and get _all posts_ and if I after that press the filter-button and it only shows the blogg-posts. It doesnt work by clicking the filter-button blogg directly. Is it that it needs to send a new query to the database?
Forum: Fixing WordPress
In reply to: all from all categories except for one where I want only 5..if ( $categories ) { $cat_slug = $categories[0]->slug; } $unfiltered = ( isset($_GET['data-filter']) && $_GET['data-filter'] == 'blogg' ) ? false : true; if ( $unfiltered && $cat_slug == 'blogg' && ++$blogg_count > 5 ) continue;
the $blogg_count, where is it getting its value?
Forum: Fixing WordPress
In reply to: all from all categories except for one where I want only 5..Ive tried to combine in every which way with these scripts without reaching a conclusion..
Forum: Fixing WordPress
In reply to: all from all categories except for one where I want only 5..Hm, you are actually right. I must have added that since I posted, sorry.
This is the output. The class “showdiv” is used to slide-down a div.
The style is just color that this script adds to the current menu-item://currentlink $(document).ready(function(){ var $container = $('#container'); var toFilter = '*'; $container.isotope({ filter: toFilter, animationOptions: { duration: 750, easing: 'linear', queue: false, } }); $container.attr('data-current',toFilter); checkActive(); $('#filters a').click(function(){ var title = $(this).attr('data-filter'); var text = $(this).text(); if(text == "Visa allt"){ var selector = title; } else { var selector = "." + title; } $container.attr('data-current',selector); $container.isotope({ filter: selector, animationOptions: { duration: 750, easing: 'linear', queue: false, } }); checkActive(); return false; }); function checkActive(){ $('#filters a').each(function(){ $(this).css({ color: '#333333' }); var title = $(this).attr('data-filter'); title = '.'+title; if(title=='.*'){ title = '*'; } var currentCat = $container.attr('data-current'); if(title==currentCat){ $(this).css({ color: '#00ff00' }); } }); } });
This is how the menu is outputted:
foreach($categories as $category) { echo '<li> <a href="'.home_url().'" class="hidediv" title="'.$category->name.'" data-filter="' . $category->slug. '">' . $category->name.'</a> </li> '; }
Forum: Fixing WordPress
In reply to: all from all categories except for one where I want only 5..This is what the href for blogg says:
<a class="hidediv" data-filter="blogg" title="Blogg" href="https://mywebsite.se" style="color: rgb(0, 255, 0);">Blogg</a>
Forum: Fixing WordPress
In reply to: all from all categories except for one where I want only 5..Can you use this attribute to send a variable? Its used in the link but the href is still the same home_url()
Could you explain?
Forum: Fixing WordPress
In reply to: all from all categories except for one where I want only 5..I tried doing similar last night, but as the link never change the sending a _get wouldnt work, but maybe there is a way around it?
I tried this earlier today but I didnt manage to get the right values to be sent.
https://foreverheavy.com/sort-wordpress-posts-by-category-without-refreshing-using-jquery/
Forum: Fixing WordPress
In reply to: all from all categories except for one where I want only 5..Oh, I’m sorry. I pasted from the email that I got and it messed it up >.<
Now I get five on the first page but just the same 5 when I filter on blogg. All the posts aren’t random anymore, maybe shuffle could fix that..
Forum: Fixing WordPress
In reply to: all from all categories except for one where I want only 5..Hm… something is up, I get this error.
Parse error: syntax error, unexpected ‘&’…www/wp-content/themes/amazing_memory/functions.php on line 110
The # makes my text-editor recognize the rest as a comment, is there some qoutation-marks missing somewhere?
Forum: Plugins
In reply to: Centering Portfolio Slideshow pluginI have placed the description and title to the right of the slideshow, unfortunatly when there is a vertical image the title and description moves along and is no longer aligned with other elements of the right side. Since I dont want (nor is able to do) that the text just stays on the right side, I would like to have the image to spread from right to left instead.
If I just change the margins the horizontal image will also move and spread under the text…not nice.
I would love some help on this matter!