1,931 questions
0
votes
0
answers
162
views
How to make a parent page for a custom taxonomy in woocommerce
I am using Woof product filter plugin and want to add a new taxonomy. Right now I have it set up with categories (type of products), brands using Perfect Brands for Woocommerce (assigns custom "...
-1
votes
2
answers
1k
views
How to Find WooCommerce Product without Featured Images
I want that the products not showing on the shop frontend who are missing the featured image.
I did not found until now a good solution.
I want excluded these products.
Looking for a snippet code or ...
-1
votes
1
answer
521
views
Xcode default snippets (if, for, struct etc.) not showing in autocomplete
I am new to Swift and also Xcode. In many tutorials I can see that snippets are really usefull especially for the beginners like me. Unfortunately I cant use them. When I am typing something, for ...
2
votes
1
answer
319
views
Chrome: run snippet from bookmark bar
Snippet:
Name: run_test
alert('test')
If drag-drop from snippets pane to bookmark bar i get a bookmark with its name and
snippet:///run_test as URL, but it is not doing anything when pressed
Is there ...
1
vote
1
answer
1k
views
Jupyter Notebook Extension: Snippets menu is not working after enabling nbextensions
After I have installed nbextensions, I have enabled a few extensions such as Hinterland, Snippets, and Snippets Menu. The other extensions are working pretty fine, except for Snippets Menu.
I am not ...
0
votes
0
answers
46
views
Trouble with editing contents/message of Empty Side Cart
I am trying to change the default text thats in the empty side cart on WooCommerce. It just doesn't look inviting at all.
For some reason all my atempts fail, I have limited understanding of PHP but ...
0
votes
2
answers
171
views
How can I create snippet that adds text and makes an edit to the file in another location
I wrote this snippet and I'm looking for a way to edit the import line at the head of the file and add the correct additions to Component class.
"Angular Lifecycle Hooks": {
"prefix&...
0
votes
0
answers
35
views
in vscode, when i type clg, i should be given the console.log() suggestion first, instead i get something else, why? [duplicate]
i am using vscode as my editor, and i'm making a small meteo app in nextjs. For a few days, i've been having a problem that i can't seem to solve.
Example 1: when i type clg, the editor is supposed to ...
0
votes
0
answers
86
views
VScode php user snippet not showing at all in suggestions if it remotely matches an emmet tag [duplicate]
In my vscode I have some handy user snippets but lately they don't properly show in suggestions when I want to use them. For example, I have a snippet called "dd" and another called "...
0
votes
0
answers
172
views
Is there a way to make a multipage snippet in vs code?
I am currently working in react js, and to work with css modules, every-time I make new component and I have to make corresponding css module file. I want snippet to make both files. Is there any way?
-1
votes
2
answers
82
views
How do I get a snippet to insert a character only if the user typed something?
I have this snippet.
SELECT 'SELECT * FROM ' + OBJECT_SCHEMA_NAME(o.object_id, DB_ID(${20:})) + '.' + name,
*
FROM ${20/$/./}sys.all_objects o
WHERE name LIKE '%${10:hadr}%'
ORDER BY o.name;
...
0
votes
4
answers
880
views
Code snippets don't work every time after new VS 2022 update
After I updated my VS 2022 before a couple of days, the built in snippet cw(tab+tab) for Console.WriteLine(); stopped working as before. Sometimes it works , but sometimes not. Its like 50/50 . I have ...
1
vote
0
answers
237
views
How to replace WooCommerce My Account registration form with a Gravity User Registration Form
I would appreciate it if anyone could advise how to replace WooCommerce My Account registration form with a form created by the Gravity Forms User Registration plugin.
Thank you,
I tried the Enable ...
0
votes
1
answer
53
views
Transfer variable value from a js file to a chrome snippet and snippet back to js file
Basically I am trying to create a web page that will open boost mobiles web site and pull IMEI's from an MS sql database (no issues with the DB). What I can't figure out is how (or if it is even ...
1
vote
1
answer
194
views
Cannot add multiple HTML code snippets to wordpress
I have a HTML code with a canvas and a button, and all the necessary drawings are inside the draw(canvas) function.
<script>
init = (event) => {
canvas = document....
0
votes
2
answers
489
views
Hide checkout fields when selecting other countries
I am not a developer and I don't know much about code so I'm struggling a bit with this.
I have a shop that ships mainly to Peru, but i want to offer shipping to other countries now. The problem I ...
0
votes
1
answer
905
views
How to add a button to all posts in wordpress?
I have created a button using wordpress block editor. I have linked this button to a section. I need this button to be present in the beginning of all my posts.How can I automate it rather than having ...
0
votes
1
answer
75
views
WordPress job and resume board not working
i just developed a job and resume upload code for my website hoping it will work. Am using code snippets plugin to add the code.
after adding the code, i get menu shortcut on my dashboard menu: ...
1
vote
0
answers
96
views
WooCommerce: Replace price of productvariation by productattribute
i'm looking for a snippet that gives me the option of replacing the price with the text "Price on request" for a product variant from WooCommerce that already exists.
I'm not a developer or ...
-1
votes
3
answers
40
views
why can't i type in div and i can't see code snippets when i type getElementById [duplicate]
why can't i change innerHTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"&...
0
votes
1
answer
85
views
Condition snippets in vscode
I've been trying to add a snippet/autocomplete in VSCode that works only inside quotes, for easily adding interpolation. Example of what I'm trying to achieve:
"Ruby string interpolation": {
...
0
votes
1
answer
132
views
how to apply following snippet to mobile only
the code:
add_filter( 'the_title', 'shorten_woo_product_title', 10, 2 );
function shorten_woo_product_title( $title, $id ) {
if ( ! is_singular( array( 'product' ) ) && get_post_type( $id )...
2
votes
1
answer
813
views
How do I create quarto snippets in vscode?
I'm struggling to get snippets work in vscode with a Quarto file. I have followed all the steps and I am confused about this.
I've created the snippet in a quarto.json file. My snippet looks like ...
1
vote
1
answer
1k
views
VSCode snippets (Hypersnips) tab stops in nested use of snippets
I am using VSCode Hypersnips (based off of Vi's https://github.com/SirVer/ultisnips), following this guide . See also Create-Snippets-For-Ultisnips.
Consider the following example: I have a snippet
...
0
votes
0
answers
217
views
Combine same attributes with different slug - Woocommerce
I have multiple product attributes with the same name and same terms but different slugs. That's a result of a migration from Shopify to Woocommerce. For example, attribute 'Μέγεθος'('Size' in Greek) ...